-
Notifications
You must be signed in to change notification settings - Fork 559
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (27 loc) · 863 Bytes
/
Dockerfile
File metadata and controls
29 lines (27 loc) · 863 Bytes
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
ARG GDAL=ubuntu-small-3.8.5
FROM ghcr.io/osgeo/gdal:${GDAL} AS gdal
ARG PYTHON_VERSION=3.12
ENV LANG="C.UTF-8" LC_ALL="C.UTF-8"
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
g++ \
gdb \
make \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-venv \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements*.txt ./
RUN python${PYTHON_VERSION} -m venv /venv && \
/venv/bin/python -m pip install -U pip && \
/venv/bin/python -m pip install -r requirements-dev.txt && \
/venv/bin/python -m pip list
FROM gdal
COPY . .
RUN /venv/bin/python setup.py install
ENTRYPOINT ["/venv/bin/rio"]
CMD ["--help"]