-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
45 lines (34 loc) · 1.03 KB
/
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
FROM python:3.6
MAINTAINER Raul Requero raul.requero@vizzuality.com
ENV USER script
USER root
RUN groupadd -r $USER && useradd -r -g $USER $USER
RUN apt-get update && apt-get -yq dist-upgrade \
&& apt-get install -yq --no-install-recommends \
wget \
python-dev \
gfortran \
gdal-bin \
libgdal-dev \
build-essential \
bzip2 \
ca-certificates \
sudo \
locales \
# libav is needed to animate matplolib stuff
libav-tools \
# ICU gives unicode libraries. Necessary for osgeo
icu-devtools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /project
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN pip install earthengine-api==0.1.102 requests==2.12.4
COPY gefcore /project/gefcore
COPY main.py /project/main.py
COPY entrypoint.sh /project/entrypoint.sh
RUN chown $USER:$USER /project
WORKDIR /project
ENTRYPOINT ["./entrypoint.sh"]