1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/Dockerfile
2025-03-12 14:12:27 -04:00

35 lines
620 B
Docker
Executable File

ARG PYTHON=python:3.11
FROM $PYTHON
WORKDIR /pywb
COPY requirements.txt extra_requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt -r extra_requirements.txt
COPY . ./
RUN python setup.py install \
&& mv ./docker-entrypoint.sh / \
&& mkdir /uwsgi && mv ./uwsgi.ini /uwsgi/ \
&& mkdir /webarchive && mv ./config.yaml /webarchive/
WORKDIR /webarchive
# auto init collection
ENV INIT_COLLECTION ''
ENV VOLUME_DIR /webarchive
#USER archivist
COPY docker-entrypoint.sh ./
# volume and port
VOLUME /webarchive
EXPOSE 8080
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["uwsgi", "/uwsgi/uwsgi.ini"]