feat: add browser support and Docker deployment

This commit is contained in:
2026-09-25 17:05:20 +02:00
parent 1d82aed1c4
commit e70ee0a01d
8 changed files with 173 additions and 14 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM python:3.12-slim AS build
WORKDIR /app
RUN pip install --no-cache-dir pygbag==0.9.3
COPY main.py ./
COPY src/ ./src/
COPY assets/ ./assets/
# Do not publish the desktop leaderboard or developer files.
RUN printf '[]\n' > src/highscore.json \
&& python -m pygbag --build --no_opt --disable-sound-format-error --title "Silent FH" .
FROM nginxinc/nginx-unprivileged:1.28-alpine
COPY --from=build /app/build/web/ /usr/share/nginx/html/
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
CMD wget -q -O /dev/null http://127.0.0.1:8080/ || exit 1