Skip to content

Commit

Permalink
build: add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
punchanabu committed Oct 23, 2024
1 parent be6b3fa commit f7c8f54
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.git
.svelte-kit
.vite
.pnpm
.env
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:18-alpine

WORKDIR /app

COPY package.json pnpm-lock.yaml ./

RUN npm install -g pnpm

RUN pnpm install

COPY . .

RUN pnpm build

EXPOSE 3000

CMD ["pnpm", "preview", "--host", "0.0.0.0"]

0 comments on commit f7c8f54

Please sign in to comment.