| #!/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 ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME} |
| ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/ |
| ${INSTALL} --mode=644 ./configs/* ${ROOT}/usr/local/share/${APPNAME}/ |
| ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/dist |
| ${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/${APPNAME}/dist |
| |
| } |
| source ../bash/docker_build.sh |