jos game
Build and Push Docker Images / build-and-push (push) Successful in 45s

This commit is contained in:
Bram committed 2026-11-18 13:16:44 +01:00
1 parent 94f1021fd0
commit 2aad61c81f
12 files changed
+2673

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
FROM python:3.13-alpine
ENV PYTHONUNBUFFERED=1 \
PORT=8000
WORKDIR /app
RUN addgroup -S game && adduser -S game -G game
COPY --chown=game:game app/ /app/
USER game
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=2)"
CMD ["python", "-u", "server.py"]