blob: 7e4214ed628f6ab7b69f407acbefaf5a613ce086 [file] [log] [blame]
#!/bin/bash
APPNAME=machineserver
set -x -e
IMAGE=$(dirname "$0")
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
${INSTALL} --mode=644 -T ${IMAGE}/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ../_bazel_bin/machine/go/machineserver/machineserver_/machineserver ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/dist
${INSTALL} --mode=644 ../_bazel_bin/machine/pages/production/*.html ${ROOT}/usr/local/share/${APPNAME}/dist
${INSTALL} --mode=644 ../_bazel_bin/machine/pages/production/*.js ${ROOT}/usr/local/share/${APPNAME}/dist
${INSTALL} --mode=644 ../_bazel_bin/machine/pages/production/*.css ${ROOT}/usr/local/share/${APPNAME}/dist
}
source ../bash/docker_build.sh