Images: Fix LuaRocks. (#13477)
This commit is contained in:
parent
af6352cbe4
commit
bb4d814931
4 changed files with 7 additions and 7 deletions
|
|
@ -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