-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 976 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 976 Bytes
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 python:3.12-slim
LABEL maintainer="EEA: IDM2 C-TEAM <[email protected]>"
ENV WORK_DIR=/var/local/art12
ENV DATA_DIR=/var/local/art12-data
RUN runDeps="curl gcc vim build-essential netcat-traditional python3-dev libldap2-dev libsasl2-dev libldap-common libssl-dev libxrender1 libfontconfig1 libxext6" \
&& 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/art12/static/maps \
&& ln -s $DATA_DIR/factsheets $WORK_DIR/art12/static/factsheets
RUN mkdir $WORK_DIR/temp_static \
&& cp -a $WORK_DIR/art12/static/. $WORK_DIR/temp_static/
RUN pip install setuptools==81.0.0 \
&& pip install -r requirements-dep.txt --trusted-host eggrepo.eea.europa.eu
RUN mv docker-entrypoint.sh /bin/
ENTRYPOINT ["docker-entrypoint.sh"]