-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 755 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (21 loc) · 755 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
# tile-server-lite — single-file container.
# Build: docker build -t tile-server-lite .
# Run: docker run --rm -v $(pwd)/data:/data -p 8080:8080 tile-server-lite \
# serve /data/parcels.gpkg --host 0.0.0.0 --port 8080
FROM python:3.12-slim
# GeoPandas/pyogrio wheels bundle GDAL, but a couple of runtime libs help.
RUN apt-get update \
&& apt-get install -y --no-install-recommends libexpat1 \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY pyproject.toml README.md ./
COPY src ./src
RUN pip install --upgrade pip && pip install .
# Mount your vector files here: -v $(pwd)/data:/data
VOLUME ["/data"]
WORKDIR /data
EXPOSE 8080
ENTRYPOINT ["tile-server-lite"]
CMD ["--help"]