1
- FROM --platform="$BUILDPLATFORM" alpine:3.18.5 as frontend
1
+ FROM --platform="$BUILDPLATFORM" alpine:3.19.0 as frontend
2
2
COPY frontend /build/frontend
3
3
COPY global/certbot-dns-plugins.js /build/frontend/certbot-dns-plugins.js
4
4
ARG NODE_ENV=production \
@@ -12,7 +12,7 @@ COPY darkmode.css /build/frontend/dist/css/darkmode.css
12
12
COPY security.txt /build/frontend/dist/.well-known/security.txt
13
13
14
14
15
- FROM --platform="$BUILDPLATFORM" alpine:3.18.5 as backend
15
+ FROM --platform="$BUILDPLATFORM" alpine:3.19.0 as backend
16
16
SHELL ["/bin/ash" , "-eo" , "pipefail" , "-c" ]
17
17
COPY backend /build/backend
18
18
COPY global/certbot-dns-plugins.js /build/backend/certbot-dns-plugins.js
@@ -30,10 +30,13 @@ RUN apk add --no-cache ca-certificates nodejs-current yarn && \
30
30
yarn cache clean --all
31
31
32
32
33
- FROM --platform="$BUILDPLATFORM" alpine:3.18.5 as crowdsec
33
+ FROM --platform="$BUILDPLATFORM" alpine:3.19.0 as crowdsec
34
+
35
+ ARG CSNB_VER=v1.0.5
36
+
34
37
WORKDIR /src
35
38
RUN apk add --no-cache ca-certificates git build-base && \
36
- git clone --recursive https://github.com/crowdsecurity/cs-nginx-bouncer /src && \
39
+ git clone --recursive https://github.com/crowdsecurity/cs-nginx-bouncer --branch "$CSNB_VER" /src && \
37
40
make && \
38
41
tar xzf crowdsec-nginx-bouncer.tgz && \
39
42
mv crowdsec-nginx-bouncer-* crowdsec-nginx-bouncer && \
@@ -45,22 +48,21 @@ RUN apk add --no-cache ca-certificates git build-base && \
45
48
sed -i "s|BAN_TEMPLATE_PATH=.*|BAN_TEMPLATE_PATH=/data/etc/crowdsec/ban.html|g" /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf && \
46
49
sed -i "s|CAPTCHA_TEMPLATE_PATH=.*|CAPTCHA_TEMPLATE_PATH=/data/etc/crowdsec/captcha.html|g" /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf
47
50
48
- FROM zoeyvid/certbot-docker:14 as certbot
51
+ FROM zoeyvid/certbot-docker:17 as certbot
49
52
50
- FROM zoeyvid/nginx-quic:219
53
+ FROM zoeyvid/nginx-quic:230
51
54
SHELL ["/bin/ash" , "-eo" , "pipefail" , "-c" ]
55
+
56
+ ARG CRS_VER=v4.0/dev
57
+
52
58
COPY rootfs /
53
59
RUN apk add --no-cache ca-certificates tzdata tini \
54
60
lua5.1-lzlib \
55
61
nodejs-current \
56
62
openssl apache2-utils \
57
63
coreutils grep jq curl shadow sudo \
58
64
luarocks5.1 wget lua5.1-dev build-base git yarn && \
59
- wget -q https://raw.githubusercontent.com/SpiderLabs/ModSecurity/v3/master/modsecurity.conf-recommended -O /usr/local/nginx/conf/conf.d/include/modsecurity.conf.example && \
60
- wget -q https://raw.githubusercontent.com/SpiderLabs/ModSecurity/v3/master/unicode.mapping -O /usr/local/nginx/conf/conf.d/include/unicode.mapping && \
61
- sed -i "s|SecRuleEngine.*|SecRuleEngine On|g" /usr/local/nginx/conf/conf.d/include/modsecurity.conf.example && \
62
- sed -i "s|unicode.mapping|/usr/local/nginx/conf/conf.d/include/unicode.mapping|g" /usr/local/nginx/conf/conf.d/include/modsecurity.conf.example && \
63
- git clone https://github.com/coreruleset/coreruleset /tmp/coreruleset && \
65
+ git clone https://github.com/coreruleset/coreruleset --branch "$CRS_VER" /tmp/coreruleset && \
64
66
mkdir -v /usr/local/nginx/conf/conf.d/include/coreruleset && \
65
67
mv -v /tmp/coreruleset/crs-setup.conf.example /usr/local/nginx/conf/conf.d/include/coreruleset/crs-setup.conf.example && \
66
68
mv -v /tmp/coreruleset/rules /usr/local/nginx/conf/conf.d/include/coreruleset/rules && \
0 commit comments