-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 897 Bytes
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 897 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
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.12-slim
LABEL maintainer="info@mfdz.de"
WORKDIR /app
RUN \
apt update \
&& apt install -y \
# GDAL headers are required for fiona, which is required for geopandas.
# Also gcc is used to compile C++ code.
libgdal-dev g++ \
# libspatialindex is required for rtree.
libspatialindex-dev \
# curl is required for healthcheck.
curl \
# Remove package index obtained by `apt update`.
&& rm -rf /var/lib/apt/lists/*
EXPOSE 80
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
# set MODULE_NAME explicitly
ENV MODULE_NAME=amarillo.main
ENV MAX_WORKERS=1
COPY ./amarillo /app/amarillo
COPY enhancer.py /app
COPY docker_start.sh /app
RUN chmod +x /app/docker_start.sh
COPY ./static /app/static
COPY ./templates /app/templates
COPY config /app
COPY logging.conf /app
COPY ./conf /app/conf
CMD ["./docker_start.sh"]