Images: Fix LuaRocks. (#13477)
This commit is contained in:
parent
af6352cbe4
commit
bb4d814931
4 changed files with 7 additions and 7 deletions
|
|
@ -1 +1 @@
|
|||
--build-arg LUAROCKS_VERSION=3.8.0 --build-arg LUAROCKS_SHA=ab6612ca9ab87c6984871d2712d05525775e8b50172701a0a1cabddf76de2be7
|
||||
--build-arg LUAROCKS_VERSION=418d2ab34891b130cc317df32f65f978640febcf --build-arg LUAROCKS_SHA=5466eb5663620ef292090148adf1ab53a4fb2ff93780dca3e49f05c92d4d3a38
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue