forked from data-osm/geosm-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·37 lines (28 loc) · 982 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
31
32
33
34
35
36
37
FROM debian:buster
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y \
nano \
sed \
curl \
git \
wget \
gnupg2 \
python3-pip \
software-properties-common
RUN wget -O - https://qgis.org/downloads/qgis-2021.gpg.key | gpg --import
RUN gpg --fingerprint 46B5721DBBD2996A
RUN gpg --export --armor 46B5721DBBD2996A | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import
RUN chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg
RUN apt-add-repository 'deb https://qgis.org/debian-ltr buster main'
RUN apt-get update && apt-get install -y \
qgis \
python3-qgis
RUN mkdir /code
RUN python3 -m pip install --upgrade pip
WORKDIR /code
COPY requirements.txt /code/
RUN pip3 install --no-cache-dir --force-reinstall cffi
RUN pip3 install --no-cache-dir cairocffi
RUN pip3 install -r requirements.txt
COPY . /code/
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2