archive-fandom-wiki/Containerfile

22 lines
471 B
Plaintext
Raw Normal View History

2023-09-17 05:21:05 +02:00
FROM python:alpine as builder
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
COPY requirements.txt ./
2023-09-18 04:53:52 +02:00
RUN python -m venv /venv \
&& /venv/bin/pip install -r /requirements.txt
2023-09-17 05:21:05 +02:00
FROM builder as final
COPY --from=builder /venv /venv
COPY archive-fandom-wiki entrypoint.sh ./
RUN mkdir /output
WORKDIR /output
ENTRYPOINT ["/entrypoint.sh"]