-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (30 loc) · 1019 Bytes
/
Dockerfile
File metadata and controls
37 lines (30 loc) · 1019 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
30
31
32
33
34
35
36
37
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.12.2
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV VENV=/opt/venv
ENV PATH="$VENV/bin:$PATH"
ENV pgdc_schema_path=/opt/venv/lib/python3.12/site-packages/geodatacrawler/schemas
# Install Python and minimal build dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3 \
git \
python3-pip \
python3-venv \
python3-dev \
build-essential \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# create virtualenv
RUN python3 -m venv $VENV
# upgrade tooling
# RUN pip install --no-cache-dir --upgrade pip setuptools wheel
# Install Python GDAL bindings matching system GDAL
RUN pip install --no-cache-dir "GDAL==3.12.2"
# Install pycsw
RUN pip install --no-cache-dir "SQLAlchemy<2.0.0"
RUN pip install --no-cache-dir git+https://github.com/geopython/pycsw.git@master
RUN pip install --no-cache-dir geodatacrawler==1.3.14
# Default command
CMD ["crawl-metadata", "--help"]