1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/Dockerfile
Ilya Kreymer be3c3c8778 seq handler: option to filter out bad responses (not 2xx or 3xx) and proceed to next handler. if at last handler, return error response
dockerfile: remove volume, port from base image
error page: add cors headers for error page
2018-05-09 12:00:03 -07:00

35 lines
470 B
Docker

ARG PYTHON=python:3.5.3
FROM $PYTHON
RUN mkdir /uwsgi
COPY uwsgi.ini /uwsgi/
WORKDIR /pywb
ADD requirements.txt .
RUN pip install -r requirements.txt
ADD extra_requirements.txt .
RUN pip install -r extra_requirements.txt
ADD . .
RUN python setup.py install
RUN mkdir /webarchive
COPY config.yaml /webarchive/
#VOLUME /webarchive
WORKDIR /webarchive
#EXPOSE 8080
CMD ["uwsgi", "/uwsgi/uwsgi.ini"]
RUN useradd -ms /bin/bash -u 1000 archivist
USER archivist