[PIE-1] Add initial svelte project #2

Merged
breadone merged 7 commits from PIE-1 into main 2025-08-12 12:27:42 +12:00
3 changed files with 42 additions and 0 deletions
Showing only changes of commit 5b0a6561b0 - Show all commits

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"