-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile.g3wsuite-deps.dockerfile
48 lines (39 loc) · 1.29 KB
/
Dockerfile.g3wsuite-deps.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
38
39
40
41
42
43
44
45
46
47
48
##
# DOCKER IMAGE: https://hub.docker.com/r/g3wsuite/g3w-suite-deps
#
# This image extends UBUNTU and ships latest QGIS version
##
FROM ubuntu:jammy
LABEL maintainer="Gis3w" \
Description="Image used to prepare build requirements for g3w-suite docker images" \
Vendor="Gis3w" \
Version="1.2"
ENV DEBIAN_FRONTEND=noninteractive
RUN chown root:root /tmp && chmod ugo+rwXt /tmp
RUN apt-get update && apt install -y \
libxml2-dev \
libxslt-dev \
postgresql-server-dev-all \
libgdal-dev \
python3-dev \
libgdal30 \
python3-gdal \
python3-pip \
curl \
wait-for-it \
gdal-bin \
libsqlite3-mod-spatialite \
dirmngr \
xvfb
# PyQGIS 3.34
RUN curl -sS https://download.qgis.org/downloads/qgis-archive-keyring.gpg > /etc/apt/keyrings/qgis-archive-keyring.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] https://qgis.org/ubuntu jammy main" | \
tee /etc/apt/sources.list.d/qgis.list && \
apt-get update && apt-get install -y python3-qgis qgis-server
# Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | \
tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt install -y yarn
RUN mkdir /code
WORKDIR /code