1
0
Fork 0

fix: fix issue with build with ngx_brotli failed (#4089)

This commit is contained in:
CityFun 2025-06-09 22:44:08 +08:00 committed by GitHub
parent f4e9557cc0
commit 5822a6b2af
5 changed files with 4 additions and 2 deletions

View File

@ -117,6 +117,8 @@ COPY tmp /tmp
ARG CONTAINER_PACKAGE_URL
RUN sed -i "s|http://archive.ubuntu.com/ubuntu/|${CONTAINER_PACKAGE_URL}|g" /etc/apt/sources.list \
&& sed -i "s|http://security.ubuntu.com/ubuntu/|${CONTAINER_PACKAGE_URL}|g" /etc/apt/sources.list
COPY --from=panel-openresty /usr/local/openresty/modules/ngx_brotli /usr/local/openresty/modules/ngx_brotli
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
@ -216,7 +218,8 @@ RUN bash /tmp/default.sh
COPY --from=panel-openresty /usr/local/openresty/1pwaf /usr/local/openresty/1pwaf
COPY --from=panel-openresty /usr/local/openresty/1pwaf/libraries/libmaxminddb.so /usr/local/openresty/1pwaf/libraries/libmaxminddb.so
COPY --from=panel-openresty /usr/local/openresty/1pwaf/libraries/libinjection.so /usr/local/openresty/1pwaf/libraries/libinjection.so
COPY --from=panel-openresty /usr/local/openresty/luajit/lib/lua/5.1/lsqlite3.so /usr/local/openresty/luajit/lib/lua/5.1/lsqlite3.so
COPY --from=panel-openresty /usr/local/openresty/luajit/lib/lua/5.1/lsqlite3.so /usr/local/openresty/luajit/lib/lua/5.1/lsqlite3.so
COPY --from=panel-openresty /usr/local/openresty/luajit/lib/lua/5.1/lfs.so /usr/local/openresty/luajit/lib/lua/5.1/lfs.so
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]

View File

@ -1,5 +1,4 @@
apt-get install -y --no-install-recommends libsqlite3-dev git python3 automake autoconf libtool\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& luarocks install luafilesystem \
&& mkdir -p /usr/local/openresty/1pwaf/libraries