1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 16:14:48 +01:00
pywb/Dockerfile
Ilya Kreymer 008504d055
Text tweaks/Dockerfile update (#288)
README: update features list, contributing section, fix typos
docs: update features list, fix wording, add more links to other sections, fix typos
renaming: change 'ikreymer/pywb' -> 'webrecorder/pywb', add Rhizome to copyright statement
Dockerfile: remove deprecated MAINTAINER, add 'ARG PYTHON' to support custom base python image
2018-01-30 07:49:54 -08:00

35 lines
468 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