Images: Fix LuaRocks. (#13477)

This commit is contained in:
Marco Ebert 2025-06-05 15:12:40 +02:00 committed by GitHub
parent af6352cbe4
commit bb4d814931
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View file

@ -2,13 +2,13 @@ ARG BASE_IMAGE
FROM ${BASE_IMAGE}
RUN apk update && apk upgrade && apk add -U --no-cache perl curl make unzip
RUN apk update && apk upgrade && apk add -U --no-cache perl curl make unzip wget
ARG LUAROCKS_VERSION
ARG LUAROCKS_SHA
RUN wget -O /tmp/luarocks.tgz \
https://github.com/luarocks/luarocks/archive/v${LUAROCKS_VERSION}.tar.gz \
https://github.com/luarocks/luarocks/archive/${LUAROCKS_VERSION}.tar.gz \
&& echo "${LUAROCKS_SHA} */tmp/luarocks.tgz" | sha256sum -c - \
&& tar -C /tmp -xzf /tmp/luarocks.tgz \
&& cd /tmp/luarocks* \
@ -17,4 +17,4 @@ RUN wget -O /tmp/luarocks.tgz \
RUN luarocks install lua-resty-template
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/nginx.conf