forked from WFP-VAM/modape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (30 loc) · 799 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
38
39
40
41
42
FROM ubuntu:bionic
LABEL maintainer="[email protected]"
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8
RUN apt-get update && apt-get install -y \
gcc \
build-essential \
aria2 \
software-properties-common \
python3 \
python3-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:ubuntugis/ppa
RUN apt-get update && apt-get install -y \
gdal-bin \
python3-gdal \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y libpq-dev \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install cython
RUN useradd -m worker
ADD . /home/worker
WORKDIR /home/worker
RUN pip3 install .
RUN python3 setup.py test
RUN rm -rf *
USER worker
CMD ["modape_version"]