Merge pull request #12 from Maathias/docker

build: dockerfile
This commit was merged in pull request #12.
This commit is contained in:
Sebastian Fudalej authored and GitHub committed 2021-09-17 00:08:04 +02:00
commit b65088204e
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"]