This commit is contained in:
Skye 2022-11-26 15:46:39 +09:00
parent 063e745313
commit 023cf2f038
Signed by: me
GPG key ID: 0104BC05F41B77B8
2 changed files with 21 additions and 0 deletions

10
.dockerignore Normal file
View file

@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM node:18 AS build-env
COPY . /app
WORKDIR /app
RUN yarn
RUN yarn build
FROM node:18
COPY --from=build-env /app/build /app
WORKDIR /app
CMD ["index.js"]