Debian Codegraph @

Dockerfile

raw
1 ARG GDAL=ubuntu-small-3.6.4
2 FROM ghcr.io/osgeo/gdal:${GDAL} AS gdal
3 ARG PYTHON_VERSION=3.10
4 ENV LANG="C.UTF-8" LC_ALL="C.UTF-8"
5 RUN apt-get update && apt-get install -y software-properties-common
6 RUN add-apt-repository -y ppa:deadsnakes/ppa
7 RUN apt-get update && \
8 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
9 g++ \
10 gdb \
11 make \
12 python3-pip \
13 python${PYTHON_VERSION} \
14 python${PYTHON_VERSION}-dev \
15 python${PYTHON_VERSION}-venv \
16 && rm -rf /var/lib/apt/lists/*
17
18 WORKDIR /app
19 COPY requirements*.txt ./
20 RUN python${PYTHON_VERSION} -m venv /venv && \
21 /venv/bin/python -m pip install -U pip && \
22 /venv/bin/python -m pip install build && \
23 /venv/bin/python -m pip install -r requirements-dev.txt && \
24 /venv/bin/python -m pip list
25
26 FROM gdal
27 COPY . .
28 RUN /venv/bin/python -m build -o wheels
29 RUN /venv/bin/python -m pip install --no-index -f wheels fiona[test]
30 ENTRYPOINT ["/venv/bin/fio"]
31 CMD ["--help"]