Merge pull request #12 from Maathias/docker
build: dockerfile
This commit was merged in pull request #12.
This commit is contained in:
2 files changed
+18
No files matched your search
@@ -0,0 +1,6 @@
|
||||
.dockerignore
|
||||
DockerFile
|
||||
node_modules
|
||||
.vscode
|
||||
.prettierrc
|
||||
.gitignore
|
||||
+12
@@ -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"]
|
||||
Reference in new issue
Block a user