Added working docker scenario

This commit is contained in:
quotschmacher 2026-01-15 01:01:01 +01:00
parent b2c263c11d
commit e2058107a4
3 changed files with 46 additions and 0 deletions

9
.dockerignore Normal file
View file

@ -0,0 +1,9 @@
node_modules
.git
.github
*.md
.gitignore
.editorconfig
package*.json
scripts
CLAUDE.md

20
Dockerfile Normal file
View file

@ -0,0 +1,20 @@
# Multi-stage build für minimales Image
FROM nginx:alpine
# Statische Dateien kopieren
COPY index.html /usr/share/nginx/html/
# Nginx Konfiguration für SPA (falls nötig)
RUN echo 'server { \
listen 80; \
server_name _; \
root /usr/share/nginx/html; \
index index.html; \
location / { \
try_files $uri $uri/ /index.html; \
} \
}' > /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

17
docker-compose.yml Normal file
View file

@ -0,0 +1,17 @@
version: '3.8'
services:
asn-qr-label-generator:
build:
context: .
dockerfile: Dockerfile
container_name: asn-qr-label-generator
ports:
- "8080:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s