mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
33 lines
629 B
Docker
33 lines
629 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 redis jinja2 'surt>=0.3.0' webencodings
|
|
|
|
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
|
|
|
|
|