forked from yagajs/docker-mapproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1 use uwsgi direct from Debian i.s.o. Python PyPi
- Loading branch information
Showing
8 changed files
with
1,463 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ FROM python:3.11-slim-bookworm | |
# * upgrade Base image to python:3.11-slim-bookworm | ||
# * drop support for EPSG:900913 | ||
# * patch TMS demo HTML | ||
# * uwsgi from python3-uwsgi i.s.o. PyPi/pip: no build deps needed! | ||
# * ENV settings: PROJ_DATA and PYTHONPATH | ||
|
||
LABEL original_developer="Arne Schubert <[email protected]>" | ||
LABEL contributor="Just van den Broecke <[email protected]>" | ||
|
@@ -40,14 +42,13 @@ ENV MAPPROXY_PROCESSES="4" \ | |
UWSGI_EXTRA_OPTIONS="" \ | ||
DEBIAN_FRONTEND="noninteractive" \ | ||
PROJ_DATA="/usr/share/proj" \ | ||
PYTHONPATH="/usr/lib/python3/dist-packages" \ | ||
DEB_BUILD_DEPS="build-essential libpcre2-dev" \ | ||
DEB_PACKAGES="python3-pil python3-yaml python3-pyproj libgeos-dev python3-lxml libgdal-dev python3-shapely libxml2-dev libxslt-dev uwsgi-plugin-python3 ${ADD_DEB_PACKAGES}" \ | ||
PIP_PACKAGES="uwsgi requests geojson watchdog MapProxy==${MAPPROXY_VERSION} ${ADD_PIP_PACKAGES}" | ||
PYTHONPATH="/usr/lib/python3/dist-packages:/usr/local/lib/python3.11/site-packages" \ | ||
DEB_PACKAGES="python3-pil python3-yaml python3-pyproj libgeos-dev python3-lxml libgdal-dev python3-shapely libxml2-dev libxslt-dev uwsgi uwsgi-plugin-python3 ${ADD_DEB_PACKAGES}" \ | ||
PIP_PACKAGES="requests geojson watchdog MapProxy==${MAPPROXY_VERSION} ${ADD_PIP_PACKAGES}" | ||
|
||
RUN set -x \ | ||
&& apt update \ | ||
&& apt install --no-install-recommends -y ${DEB_BUILD_DEPS} ${DEB_PACKAGES} ${ADD_DEB_PACKAGES} \ | ||
&& apt install --no-install-recommends -y ${DEB_PACKAGES} ${ADD_DEB_PACKAGES} \ | ||
&& useradd -ms /bin/bash mapproxy \ | ||
&& mkdir -p /mapproxy \ | ||
&& chown mapproxy /mapproxy \ | ||
|
@@ -56,7 +57,6 @@ RUN set -x \ | |
&& pip3 uninstall --yes wheel \ | ||
&& pip3 cache purge \ | ||
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \ | ||
&& apt-get remove --yes --purge ${DEB_BUILD_DEPS} \ | ||
&& apt-get --yes --purge autoremove \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.