-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 968 Bytes
/
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
FROM camptocamp/c2cwsgiutils:2
LABEL maintainer "info@camptocamp.org"
WORKDIR /app
# The full pdf extract functionality requires pdftk, but this library is not available in Ubuntu bionic.
# Note that it is expected that the full pdf extract functionality will be removed from the next
# specification.
#RUN \
# apt-get update && \
# apt-get install --assume-yes --no-install-recommends pdftk-java && \
# apt-get clean && \
# rm --recursive --force /var/lib/apt/lists/*
COPY docker/requirements.txt /app/docker/
COPY requirements.txt /app/
RUN pip install --disable-pip-version-check --no-cache-dir --requirement requirements.txt --requirement docker/requirements.txt
COPY . /app
RUN pip install --disable-pip-version-check --no-cache-dir --editable . && \
mkdir /etc/pyramid_oereb && \
mv docker/config.yaml /etc/pyramid_oereb/ && \
mv docker/production.ini .
ENV LOGO_CANTON=logo_canton.png \
DEVELOPMENT=false \
LOG_LEVEL=INFO