-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (21 loc) · 1000 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
30
FROM python:3.8-slim
LABEL maintainer="EEA: IDM2 C-TEAM <eea-edw-c-team-alerts@googlegroups.com>"
ENV WORK_DIR=/var/local/art17
ENV DATA_DIR=/var/local/art17-data
RUN runDeps="curl gcc vim build-essential netcat-traditional python-dev-is-python3 libldap2-dev libsasl2-dev libssl-dev libldap-common libxrender1 libfontconfig1 libxext6 wkhtmltopdf" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $runDeps \
&& rm -vrf /var/lib/apt/lists/*
COPY . $WORK_DIR/
WORKDIR $WORK_DIR
RUN mkdir $WORK_DIR/logs \
&& mkdir -p $DATA_DIR/maps \
&& mkdir -p $DATA_DIR/factsheets \
&& ln -s $DATA_DIR/maps $WORK_DIR/art17/static/maps \
&& ln -s $DATA_DIR/factsheets $WORK_DIR/art17/static/factsheets
RUN mkdir $WORK_DIR/temp_static \
&& cp -a $WORK_DIR/art17/static/. $WORK_DIR/temp_static/
RUN pip install -U setuptools==57.5.0\
&& pip install -r requirements-dep.txt --trusted-host eggrepo.eea.europa.eu
RUN mv docker-entrypoint.sh /bin/
ENTRYPOINT ["docker-entrypoint.sh"]