forked from GeoscienceAustralia/dea-coastlines
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
40 lines (31 loc) · 870 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
FROM osgeo/gdal:ubuntu-small-3.4.1 as base
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
RUN apt-get update \
&& apt-get install -y \
# Build tools
build-essential \
git \
python3-pip \
# For Psycopg2
libpq-dev python3-dev \
# For SSL
ca-certificates \
# Tidy up
&& apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/{apt,dpkg,cache,log}
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r /tmp/requirements.txt \
--no-binary rasterio \
--no-binary shapely \
--no-binary fiona \
# Extras
&& pip install --no-cache-dir awscli requests
RUN mkdir -p /code
WORKDIR /code
COPY . /code/
RUN pip install /code
CMD ["python", "--version"]
RUN deafricacoastlines-raster --help \
&& deafricacoastlines-vector --help