mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 16:14:48 +01:00
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
35 lines
468 B
Docker
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
|
|
|
|
|