24 lines
598 B
Docker
24 lines
598 B
Docker
FROM debian:bookworm-slim AS tile-builder
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
gdal-bin \
|
|
python3 \
|
|
python3-pil \
|
|
proj-data \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY scripts/ /app/scripts/
|
|
COPY config/ /app/config/
|
|
RUN chmod +x /app/scripts/build-tiles.sh /app/scripts/build-tiles.py
|
|
|
|
ENTRYPOINT ["/app/scripts/build-tiles.sh"]
|
|
|
|
FROM nginx:1.27-alpine AS tile-server
|
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|