Browse Source

🐳 Create Dockerfile

pull/2/head
anthony 5 years ago
parent
commit
ed54f9e150
  1. 18
      Dockerfile

18
Dockerfile

@ -0,0 +1,18 @@
FROM node:lts as builder
WORKDIR /build
COPY . .
RUN yarn install
RUN yarn build
FROM node:lts
WORKDIR /app
COPY --from=builder /build/dist ./dist
COPY --from=builder /build/package.json package.json
RUN yarn install --prod
CMD ["yarn", "start:prod"]
Loading…
Cancel
Save