-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (37 loc) · 1.16 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
46
47
48
49
FROM continuumio/miniconda3
MAINTAINER Alex Zvoleff azvoleff@conservation.org
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 \
gfortran \
gdal-bin \
libgdal-dev \
build-essential \
bzip2 \
ca-certificates \
sudo \
locales \
ffmpeg \
# 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 conda create -n env python=3.8
RUN echo "source activate env" > ~/.bashrc
ENV PATH /opt/conda/envs/env/bin:$PATH
RUN conda install -n env -c conda-forge earthengine-api==0.1.254
RUN conda install -n env -c conda-forge gdal
RUN conda install -n env requests
COPY gefcore /project/gefcore
COPY main.py /project/main.py
COPY entrypoint.sh /project/entrypoint.sh
RUN chown $USER:$USER /project
WORKDIR /project
ENTRYPOINT ["sh","./entrypoint.sh"]