-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
49 lines (35 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Based on standard pywb fork
FROM webrecorder/pywb:2.6.9
USER root
WORKDIR /ukwa_pywb
# Grab any security updates:
#RUN apt-get update && apt-get upgrade -y \
# && rm -rf /var/lib/apt/lists/*
# Add in source files and build:
ADD setup.py .
ADD setup.cfg .
ADD README.md .
ADD ukwa_pywb/ ./ukwa_pywb/
RUN python setup.py install
COPY i18n/ i18n/
# Include 'fuzzy' translations (so we can see changes here)
# See https://stackoverflow.com/a/12555922
RUN python setup.py compile_catalog -f
COPY acl/ acl/
COPY proxy-certs/ proxy-certs/
COPY uwsgi.ini .
COPY static/ static/
COPY templates/ templates/
# Run as non-root user:
# USER archivist
# Parent image no longer uses this user.
RUN mkdir /ukwa_pywb/collections
RUN mkdir -p /webarchive
COPY config.yaml /webarchive
#ADD integration-test/test-data/ /webarchive/integration-test/test-data/
# Define environment variables:
ENV DEBUG=False
ENV PYWB_CONFIG_FILE=/webarchive/config.yaml
ENV UKWA_INDEX=/webarchive/integration-test/test-data/
ENV UKWA_ARCHIVE=/webarchive/integration-test/test-data/
CMD ["uwsgi", "uwsgi.ini"]