Reuse workflow CI (#10826)

* Reuse workflow CI

* Simplify images Makefiles
This commit is contained in:
Ricardo Katz 2024-01-13 13:15:35 +00:00 committed by GitHub
parent 00db204d86
commit c9a3571556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 385 additions and 782 deletions

View file

@ -1,20 +0,0 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
RUN apk update && apk upgrade && apk add -U --no-cache perl curl make unzip
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 - \
&& tar -C /tmp -xzf /tmp/luarocks.tgz \
&& cd /tmp/luarocks* \
&& ./configure \
&& make install
RUN luarocks install lua-resty-template
COPY nginx.conf /etc/nginx/nginx.conf