FROM nginx:alpine # Kopiere statische Dateien ins Nginx-Verzeichnis COPY src/ /usr/share/nginx/html/ # Konfiguriere NGINX für Single-Page-Applications (optional) RUN echo 'server { \ listen 80; \ 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;"]