-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
33 lines (27 loc) · 989 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
FROM ubuntu:20.04
LABEL maintainer="Ian Rees <[email protected]>,Drew Dara-Abrams <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install \
python3 \
python3-pip \
pypy-setuptools \
curl \
osmosis \
osmctools \
osmium-tool \
pyosmium \
libgdal-dev \
gdal-bin \
awscli \
software-properties-common \
-y
# Ubuntu Java SSL issue - https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty/25188331#25188331
RUN /usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts
RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
WORKDIR /app
COPY . /app
RUN python3 setup.py test
RUN pip3 install . && pip3 install boto3
COPY planetutils.sh /scripts/planetutils.sh
WORKDIR /data
CMD [ "/scripts/planetutils.sh" ]