Files
gaokao-volunteer-system/Dockerfile.poster
Hermes Agent c72e4db6cf
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
fix(docker): T4-02 clear proxy env in Dockerfile.poster
2026-07-06 07:56:14 +08:00

35 lines
800 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
http_proxy= \
https_proxy= \
HTTP_PROXY= \
HTTPS_PROXY= \
no_proxy= \
NO_PROXY=
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
fonts-noto-cjk \
libjpeg62-turbo \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY constraints.txt requirements-admin.txt /tmp/
RUN python -m pip install --upgrade pip \
&& python -m pip install -c /tmp/constraints.txt -r /tmp/requirements-admin.txt
COPY data /app/data
COPY scripts/gaokao-poster /app/scripts/gaokao-poster
RUN chmod +x /app/scripts/gaokao-poster
ENTRYPOINT ["python", "/app/scripts/gaokao-poster"]
CMD ["--help"]