1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/Dockerfile
Ilya Kreymer a2ffbde2f6 dockerfile: add portalocker
rewriterapp: don't add memento headers for ajax responses to avoid replay issues
2017-03-08 12:30:20 -08:00

33 lines
648 B
Docker

FROM python:3.5.2
MAINTAINER Ilya Kreymer <ikreymer at gmail.com>
RUN mkdir /uwsgi
COPY uwsgi.ini /uwsgi/
RUN pip install gevent==1.1.2 certauth youtube-dl boto uwsgi urllib3
RUN pip install git+https://github.com/t0m/pyamf.git@python3
RUN pip install webassets pyyaml brotlipy
RUN pip install six chardet 'requests<2.12' redis jinja2 'surt>=0.3.0' webencodings portalocker
RUN mkdir /pywb
ADD . /pywb
RUN cd pywb; 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