Skip to content

Commit

Permalink
FROM node:12 as BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Nov 8, 2019
1 parent 267a88d commit 0d8b434
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Dockerfile

FROM node:12 as BUILD
COPY . /data/
RUN npm run build

FROM node:12-alpine
EXPOSE 3000
WORKDIR /data
ADD . /data
RUN npm install -s
COPY --from=BUILD . /data/
# ADD . /data
# RUN npm run build
CMD ["node", "server.js"]

0 comments on commit 0d8b434

Please sign in to comment.