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

34 lines
602 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 mkdir /pywb
ADD setup.py /pywb
ADD README.rst /pywb
ADD ./pywb /pywb/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