Docker
This commit is contained in:
parent
4d67a8927c
commit
59c5721fbd
2 changed files with 26 additions and 0 deletions
9
.dockerignore
Normal file
9
.dockerignore
Normal file
|
@ -0,0 +1,9 @@
|
|||
.svelte-kit
|
||||
node_modules
|
||||
.env
|
||||
.env.example
|
||||
.gitignore
|
||||
.npmrc
|
||||
.prettierignore
|
||||
.prettierrc
|
||||
README.md
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM node:lts-alpine AS base
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
FROM base AS build
|
||||
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
FROM base AS app
|
||||
|
||||
COPY --from=build build/* .
|
||||
|
||||
USER app
|
||||
EXPOSE 3000/tcp
|
||||
ENTRYPOINT [ "node", "index.js" ]
|
||||
|
Loading…
Reference in a new issue