Adding NodeJS version 12 env (#1683)

Co-authored-by: Rahul Bhati <rjbhati009@gmail.com>
This commit is contained in:
Vishal
2020-08-28 10:24:22 +05:30
committed by GitHub
co-authored by Rahul Bhati
parent 22f385b809
commit 1755d3a017
12 changed files with 166 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM node:12.16-alpine3.11
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install && npm cache clean --force
COPY server.js /usr/src/app/server.js
CMD [ "npm", "start" ]
EXPOSE 8888
@@ -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:12.16-alpine3.11
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