fertiges design!

This commit is contained in:
knuthtimo-lab 2025-08-28 13:51:24 +02:00
parent 74f38656f7
commit 934e249f33
4 changed files with 37 additions and 4 deletions

8
.gitignore vendored
View File

@ -113,10 +113,10 @@ temp/
# Vercel # Vercel
.vercel .vercel
# Docker # Docker (keeping these files for the project)
.dockerignore # .dockerignore
Dockerfile # Dockerfile
docker-compose*.yml # docker-compose*.yml
# Backup files # Backup files
*.bak *.bak

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

12
docker-compose.dev.yml Normal file
View File

@ -0,0 +1,12 @@
version: "3.9"
services:
dev:
image: node:20-alpine
working_dir: /app
volumes:
- .:/app
- /app/node_modules
command: sh -c "npm install && npm run dev -- --host"
ports:
- "5173:5173"

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: "3.9"
services:
web:
build: .
ports:
- "8080:80"
restart: unless-stopped