spel mama
Build and Push Docker Images / build-and-push (push) Successful in 26s

This commit is contained in:
Bram committed 2026-11-18 14:20:52 +01:00
1 parent 2aad61c81f
commit 3f8984bb09
12 files changed
+3458

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"]