tetris klaar

This commit is contained in:
martijn.diersmann@pm.me
2026-09-26 20:38:55 +02:00
commit 4c1f670e9f
16 changed files with 1565 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# Serveert de statische Tetris-game via nginx.
# nginx:alpine draait standaard de master als root en wisselt zelf naar de
# 'nginx'-user voor de workers; hierdoor werkt de entrypoint-configuratie
# (schrijven naar /etc/nginx/conf.d en /var/cache) zonder aanpassingen.
FROM nginx:1.27-alpine
# Game-bestanden kopieren naar de web-root
COPY game/ /usr/share/nginx/html/
# Extra headers voor veiligheid en caching
RUN { \
echo 'server_tokens off;'; \
echo 'add_header X-Content-Type-Options nosniff;'; \
echo 'gzip_types text/css application/javascript application/json image/svg+xml;'; \
} > /etc/nginx/conf.d/security.conf
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://127.0.0.1/ || exit 1