Fixed build to correctly install crowdsec-openresty-bouncer

This commit is contained in:
lepresidente
2022-02-22 10:08:16 +02:00
parent b4804e6faf
commit c9cb887b4a
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -57,6 +57,7 @@ RUN apt-get update \
tzdata \
unzip \
zlib1g \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
@@ -72,6 +73,9 @@ COPY ./scripts/install-lua /tmp/install-lua
COPY --from=nginxbuilder /tmp/openresty /tmp/openresty
COPY ./scripts/install-openresty /tmp/install-openresty
# Copy crowdsec openresty bouncer install script
COPY ./scripts/install-crowdsec_openresty_bouncer /tmp/install-crowdsec_openresty_bouncer
ARG OPENRESTY_VERSION
ARG CROWDSEC_OPENRESTY_BOUNCER_VERSION
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
@@ -83,7 +87,8 @@ RUN apt-get update \
&& apt-get install -y gcc make socat git \
&& /tmp/install-lua \
&& /tmp/install-openresty \
&& apt-get remove -y make gcc git \
&& /tmp/install-crowdsec_openresty_bouncer \
&& apt-get remove -y make gcc git wget \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \