Files
crunchyroll-watchlist/Dockerfile
T
pie 47e66478c4
Build and Push Docker Image / build-and-push-image (push) Failing after 14m8s
Initial commit
2026-04-19 17:08:09 +01:00

24 lines
707 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir streamlit requests
# Copy app
COPY crunchyroll_watchlist.py .
# Streamlit config — disable telemetry, set port
ENV STREAMLIT_SERVER_PORT=8501 \
STREAMLIT_SERVER_ADDRESS=0.0.0.0 \
STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \
STREAMLIT_SERVER_HEADLESS=true
EXPOSE 8501
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD python -c "import urllib.request,sys; \
sys.exit(0 if urllib.request.urlopen('http://localhost:8501/_stcore/health').status==200 else 1)"
ENTRYPOINT ["streamlit", "run", "crunchyroll_watchlist.py", "--server.port=8501", "--server.address=0.0.0.0"]