Docker
This commit is contained in:
parent
063e745313
commit
023cf2f038
2 changed files with 21 additions and 0 deletions
10
.dockerignore
Normal file
10
.dockerignore
Normal 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
11
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue