-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 884 Bytes
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 884 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
38
39
40
41
42
FROM ubuntu:22.04
# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-dev \
gcc \
g++ \
libgdal-dev \
gdal-bin \
libproj-dev \
proj-bin \
proj-data \
libgeos-dev \
python3-pyproj \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /mapproxy
# Install MapProxy
RUN pip3 install --no-cache-dir MapProxy==1.13.2
# Copy configuration files
COPY config.yml .
COPY config_layers.yml .
COPY log.ini .
COPY run_mapproxy.py .
COPY sources/ ./sources/
# Create cache and log directories
RUN mkdir -p /mapproxy/cache /mapproxy/mapproxy_log
# Expose port
EXPOSE 8080
# Start MapProxy with log.ini so source request URLs are logged
CMD ["python3", "run_mapproxy.py", "--debug"]