Add v2 interface support for nodes env (#836)

This commit is contained in:
Gary Yeap
2018-09-14 14:28:04 +08:00
committed by Ta-Ching Chen
parent d18777bed4
commit 6f60f3eef8
11 changed files with 289 additions and 125 deletions
+11
View File
@@ -0,0 +1,11 @@
ARG BUILDER_IMAGE=fission/builder
FROM ${BUILDER_IMAGE}
# default variant is the official alpine node image (much smaller than the standard image)
FROM node:8-alpine
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
COPY --from=0 /builder /builder
ADD build.sh /usr/local/bin/build
RUN chmod +x /usr/local/bin/build
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
cd ${SRC_PKG}
npm install && cp -r ${SRC_PKG} ${DEPLOY_PKG}