-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 929 Bytes
/
Dockerfile
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
FROM python:3.9-slim
ADD geo-server /geo-server
RUN export DEBIAN_FRONTEND=noninteractive ; \
apt update \
&& ls / \
&& ls /geo-server \
&& apt upgrade -y \
&& apt install build-essential ca-certificates libfreetype6-dev libgdal-dev libgeos-dev libjpeg-dev zlib1g-dev --no-install-recommends -y \
&& cd /tmp \
&& python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir --upgrade Pillow PyYAML pyproj six lxml Shapely waitress \
&& python3 -m pip install --no-cache-dir --upgrade MapProxy \
&& apt remove build-essential -y \
&& apt-get autoremove -y \
&& apt-get clean \
&& cd / \
&& chmod +x /geo-server/entrypoint.sh \
&& rm -rf /root/.cache && rm -r /var/lib/apt/lists/* && rm -rf /tmp && mkdir /tmp && chmod 777 /tmp && truncate -s 0 /var/log/*.log
WORKDIR /
ENV LISTEN_HOST 127.0.0.1
ENV LISTEN_PORT 48080
ENTRYPOINT [ "/geo-server/entrypoint.sh" ]