-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 1023 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (27 loc) · 1023 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
FROM ubuntu:focal
LABEL maintainer='lars.claussen <lars.claussen@nelen-schuurmans.nl>'
LABEL py_version='3.x'
# Change the date to force rebuilding the whole image.
ENV REFRESHED_AT 2018-03-02
# http://click.pocoo.org/5/python3/#python-3-surrogate-handling
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
# Add ubuntugis PPA. A recent GDAL version is required by the GPKG driver.
# NB: Package software-properties-common has python3 as a dependency.
RUN apt-get update && apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ubuntugis/ppa \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
curl \
libgdal-dev \
libhdf5-serial-dev \
python3-dev \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Avoid issues with upgrading an apt-managed pip.
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python3
RUN pip install -U pip
WORKDIR /code
COPY requirements_docker.txt /code/
RUN pip install --no-cache-dir -r requirements_docker.txt