2020-06-26 16:02:30 -04:00
|
|
|
ARG BASE_IMAGE
|
|
|
|
|
|
|
|
|
|
FROM ${BASE_IMAGE}
|
2020-02-06 18:08:44 -03:00
|
|
|
|
2023-04-06 13:25:48 -04:00
|
|
|
RUN apk update && apk upgrade && apk add -U --no-cache perl curl make unzip
|
2020-02-06 18:08:44 -03:00
|
|
|
|
2020-06-26 16:02:30 -04:00
|
|
|
ARG LUAROCKS_VERSION
|
|
|
|
|
ARG LUAROCKS_SHA
|
|
|
|
|
|
|
|
|
|
RUN wget -O /tmp/luarocks.tgz \
|
|
|
|
|
https://github.com/luarocks/luarocks/archive/v${LUAROCKS_VERSION}.tar.gz \
|
|
|
|
|
&& echo "${LUAROCKS_SHA} */tmp/luarocks.tgz" | sha256sum -c - \
|
2020-05-30 23:25:56 -04:00
|
|
|
&& tar -C /tmp -xzf /tmp/luarocks.tgz \
|
|
|
|
|
&& cd /tmp/luarocks* \
|
|
|
|
|
&& ./configure \
|
2020-06-26 16:02:30 -04:00
|
|
|
&& make install
|
2020-05-30 23:25:56 -04:00
|
|
|
|
|
|
|
|
RUN luarocks install lua-resty-template
|
|
|
|
|
|
2024-01-14 22:09:13 -03:00
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|