mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
32 lines
552 B
Docker
32 lines
552 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 . /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
|
|
|
|
|