-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
42 lines (34 loc) · 895 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
FROM osgeo/gdal:ubuntu-small-3.4.1
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 \
tmux \
python3-pip \
libpq-dev python-dev \
&& apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/{apt,dpkg,cache,log}
# Pip installation
RUN mkdir -p /conf
COPY requirements.txt /conf/
COPY constraints.txt /conf/
RUN pip install -r /conf/requirements.txt -c /conf/constraints.txt
# Copy source code and install it
RUN mkdir -p /code
WORKDIR /code
ADD . /code
RUN echo "Installing dea-conflux 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 dea-conflux --version