mirror of
https://codeberg.org/hyperreal/archive-fandom-wiki
synced 2024-11-01 08:33:06 +01:00
22 lines
471 B
Docker
22 lines
471 B
Docker
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 ./
|
|
RUN python -m venv /venv \
|
|
&& /venv/bin/pip install -r /requirements.txt
|
|
|
|
FROM builder as final
|
|
|
|
COPY --from=builder /venv /venv
|
|
COPY archive-fandom-wiki entrypoint.sh ./
|
|
RUN mkdir /output
|
|
WORKDIR /output
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|