build: add Dockerfile and compose for dev

This commit is contained in:
Kilian Decaderincourt
2021-09-08 12:20:19 +02:00
parent ad14da6af7
commit 1de829e192
3 changed files with 40 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:16-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --prod
COPY ./dist ./dist
USER node
EXPOSE 8080
ENTRYPOINT ["npm", "run", "start:prod"]