Make website Docker ready

This commit is contained in:
2020-06-01 16:09:57 +02:00
parent be3a400512
commit 466b9ea8db
7 changed files with 123 additions and 1 deletions

12
backend/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:alpine AS builder
WORKDIR /app
COPY ./package.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:alpine
WORKDIR /app
COPY --from=builder /app ./
CMD ["npm", "run", "start:prod"]