-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
44 lines (33 loc) · 1016 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
43
44
FROM andrejreznik/python-gdal:py3.10.0-gdal3.2.3
ENV DEBIAN_FRONTEND=noninteractive \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
TINI_VERSION=v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
RUN apt-get update && \
apt-get install -y \
build-essential \
git \
wget \
ffmpeg \
libsm6 \
libxext6
COPY requirements.txt /conf/
RUN pip install --no-cache-dir --requirement /conf/requirements.txt
RUN pip install --extra-index-url="https://packages.dea.ga.gov.au" \
odc-ui \
odc-stac \
odc-stats \
odc-algo \
odc-io \
odc-cloud[ASYNC] \
odc-dscache \
odc-index
RUN git clone https://github.com/Open-EO/openeo-pg-parser-python.git
RUN cd openeo-pg-parser-python && pip install .
RUN git clone https://github.com/SARScripts/openeo_odc_driver.git -b dev
WORKDIR /
ENTRYPOINT ["/tini", "--"]
WORKDIR /openeo_odc_driver/openeo_odc_driver/
CMD ["gunicorn","-c","gunicorn.conf.py","odc_backend:app"]