Convert build.sh to a multi-stage Dockerfile. (#452)

This commit is contained in:
Justin
2018-01-28 11:49:31 +08:00
committed by Ta-Ching Chen
parent 4f7eb19b7c
commit 986b300b8c
6 changed files with 59 additions and 16 deletions
+4
View File
@@ -0,0 +1,4 @@
ARG BUILDER_IMAGE=fission/builder:latest
FROM ${BUILDER_IMAGE}
ADD build.sh /usr/local/bin/build
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
apk update
CWD=$(pwd)
if [ -f ${SRC_PKG}/build.sh ]; then
cd ${SRC_PKG}
./build.sh
cd ${CWD}
fi
cp -rf ${SRC_PKG} ${DEPLOY_PKG}