-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
37 lines (31 loc) · 1.66 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
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.10.0
RUN apt-get update && apt-get --assume-yes upgrade \
&& apt-get -qq install -y --no-install-recommends postgresql-common \
&& apt-get -qq install -y --no-install-recommends yes \
&& apt-get -qq install -y --no-install-recommends gnupg \
&& yes '' | sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh \
&& apt-get -qq install -y --no-install-recommends postgresql-client-17 \
&& apt-get -qq install -y --no-install-recommends make \
&& apt-get -qq install -y --no-install-recommends g++ \
&& apt-get -qq install -y --no-install-recommends git \
&& apt-get -qq install -y --no-install-recommends zip \
&& apt-get -qq install -y --no-install-recommends unzip \
&& apt-get -qq install -y --no-install-recommends parallel \
&& apt-get -qq install -y --no-install-recommends python3-pip \
&& apt-get -qq install -y --no-install-recommends python3-dev \
&& apt-get -qq install -y --no-install-recommends python3-venv \
&& apt-get -qq install -y --no-install-recommends python3-psycopg2 \
&& rm -rf /var/lib/apt/lists/*
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install
RUN python3 -m venv /opt/venv && \
/opt/venv/bin/python -m pip install -U pip && \
/opt/venv/bin/python -m pip install --no-cache-dir --upgrade numpy && \
/opt/venv/bin/python -m pip install --no-cache-dir rasterstats && \
/opt/venv/bin/python -m pip install --no-cache-dir bcdata
WORKDIR /home/fwapg
COPY ["db", "db/"]
COPY ["extras", "extras/"]
COPY [".env.docker", "Makefile", "./"]
ENV PATH="/opt/venv/bin:$PATH"