forked from openoereb/pyramid_oereb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 1.29 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
FROM camptocamp/c2cwsgiutils:3
LABEL maintainer "[email protected]"
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 apt update && \
DEV_PACKAGES="python3.7-dev build-essential libgeos-dev" && \
DEBIAN_FRONTEND=noninteractive apt install --yes --no-install-recommends \
libgeos-c1v5 ${DEV_PACKAGES} && \
pip install --disable-pip-version-check --no-cache-dir --requirement requirements.txt --requirement docker/requirements.txt && \
apt remove --purge --autoremove --yes ${DEV_PACKAGES} binutils && \
apt-get clean && \
rm --force --recursive /var/lib/apt/lists/*
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