-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 1.07 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
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.9.2
ENV LANG="C.UTF-8" LC_ALL="C.UTF-8"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-get update && \
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 jq && \
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 && \
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
WORKDIR /home/fit_opendatadownloader
COPY requirements*.txt ./
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 -r requirements.txt
ENV PATH="/opt/venv/bin:$PATH"