[PIE-1] Add docker files

This commit is contained in:
June 2025-08-11 18:16:59 +12:00
parent 08ae9ee79e
commit 5b0a6561b0
Signed by: breadone
GPG Key ID: FDC19FE143200483
3 changed files with 42 additions and 0 deletions

27
.dockerignore Normal file
View File

@ -0,0 +1,27 @@
# Node modules
node_modules
# Build output
build
dist
.svelte-kit
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Environment files
.env
.env.*
# OS generated files
.DS_Store
Thumbs.db
# Editor directories and files
.vscode
.idea
*.swp
*.swo

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:24-alpine
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY . .
RUN npm run build
EXPOSE 4173
CMD ["npm", "run", "preview", "--", "--host"]

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
services:
web:
build: .
env_file: .env
ports:
- "4173:4173"