Update OpenResty GeoIP base image and patch libraries (#767)

This commit is contained in:
cloudneutral 2025-12-06 20:19:27 +08:00 committed by GitHub
parent 1e66b6a3fe
commit 999a9127d9

View File

@ -1,12 +1,13 @@
FROM openresty/openresty:1.25.3.2-0-bookworm
FROM openresty/openresty:1.27.1.2-5-bookworm
LABEL maintainer="XControl" \
description="OpenResty base image with GeoIP2 libraries and lua-resty-maxminddb"
RUN set -eux; \
apt-get update && apt-get upgrade -y; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates libmaxminddb0 libmaxminddb-dev mmdb-bin luarocks; \
apt-get purge -y --auto-remove build-essential git luarocks; \
apt-get install -y --only-upgrade libpam-modules libpam-modules-bin libpam-runtime libpam0g zlib1g; \
apt-get purge -y --auto-remove git luarocks; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# OpenResty 配置nginx.conf, conf.d/*.conf, lua/