This commit is contained in:
cirroskais 2024-03-18 05:48:13 -04:00
parent 4d67a8927c
commit 59c5721fbd
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D
2 changed files with 26 additions and 0 deletions

9
.dockerignore Normal file
View file

@ -0,0 +1,9 @@
.svelte-kit
node_modules
.env
.env.example
.gitignore
.npmrc
.prettierignore
.prettierrc
README.md

17
Dockerfile Normal file
View 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" ]