Browse Source

👷 add docker

main
Martin 4 years ago
parent
commit
fa94ce608f
  1. 12
      Dockerfile

12
Dockerfile

@ -0,0 +1,12 @@
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN yarn install
COPY . .
RUN yarn run build
FROM node:lts-alpine as production-stage
COPY . .
COPY --from=build-stage /app/dist ./dist
CMD ["yarn", "dev"]
Loading…
Cancel
Save