-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
48 lines (40 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
46
47
48
# Base image with:
# - Ubuntu 22.04
# - Python 3.10.12
# - GDAL 3.7.3, released 2023/10/30
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.3
ENV DEBIAN_FRONTEND=noninteractive \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8
# Apt installation
RUN apt-get update && \
apt-get install -y \
build-essential \
fish \
git \
vim \
htop \
wget \
unzip \
python3-pip \
libpq-dev \
&& apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/{apt,dpkg,cache,log}
# Install pip-tools
RUN pip install pip-tools
# Pip installation
RUN mkdir -p /conf
COPY requirements.txt /conf/
RUN pip install -r /conf/requirements.txt \
&& pip install --no-cache-dir awscli
# Copy source code and install it
RUN mkdir -p /code
WORKDIR /code
ADD . /code
RUN echo "Installing dea-coastlines through the Dockerfile."
RUN pip install --extra-index-url="https://packages.dea.ga.gov.au" .
RUN pip freeze && pip check
# Make sure it's working
RUN deacoastlines-raster --help \
&& deacoastlines-vector --help