Convert build.sh to a multi-stage Dockerfile. (#452)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
ARG BUILDER_IMAGE=fission/builder:latest
|
||||
FROM ${BUILDER_IMAGE}
|
||||
|
||||
ADD build.sh /usr/local/bin/build
|
||||
Executable
+13
@@ -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}
|
||||
Reference in New Issue
Block a user