mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-10-31 20:55:35 +08:00
19 lines
636 B
Docker
19 lines
636 B
Docker
FROM python:3.13.14-alpine3.23@sha256:9fdbf2e3e82628351513560b121e2ee6ce31cac212be9e070c5a5e2769fb5e76
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
HOST=0.0.0.0 \
|
|
PORT=18888 \
|
|
FIXTURES_ROOT=/fixtures
|
|
|
|
WORKDIR /app
|
|
COPY e2e/mock-upstream/server.py /app/server.py
|
|
COPY e2e/fixtures /fixtures
|
|
|
|
EXPOSE 18888
|
|
HEALTHCHECK --interval=2s --timeout=3s --start-period=2s --retries=20 \
|
|
CMD ["python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:18888/health', timeout=2)"]
|
|
|
|
ENTRYPOINT ["python", "/app/server.py"]
|
|
CMD ["--host", "0.0.0.0", "--port", "18888", "--fixture-root", "/fixtures"]
|