build: dockerfile

This commit is contained in:
Sebastian Fudalej committed 2021-09-16 23:07:42 +02:00
1 parent 48acbddf6c
commit 55e4281c8c
2 files changed
+18

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
.dockerignore
DockerFile
node_modules
.vscode
.prettierrc
.gitignore
+12
View File
@@ -0,0 +1,12 @@
FROM node:14-stretch AS build
WORKDIR /build
COPY package-lock.json package.json ./
RUN npm ci
COPY . .
FROM node:14-alpine AS deploy
USER node
WORKDIR /home/node/src
COPY --from=build --chown=node:node /build .
CMD ["npm", "start"]