|
1 | 1 | # EvuProxy CrowdSec nftables bouncer — host network + NET_ADMIN updates inet evuproxy. |
2 | | -# Built locally by install.sh / docker compose (no official CrowdSec bouncer image on Docker Hub). |
| 2 | +# Binary from official GitHub releases (no packagecloud/apt during image build). |
3 | 3 |
|
4 | 4 | FROM debian:bookworm-slim |
5 | 5 |
|
| 6 | +ARG BOUNCER_VERSION=0.0.34 |
| 7 | +ARG TARGETARCH |
| 8 | + |
| 9 | +ENV DEBIAN_FRONTEND=noninteractive |
| 10 | + |
6 | 11 | RUN apt-get update \ |
7 | | - && apt-get install -y --no-install-recommends curl ca-certificates gettext-base \ |
8 | | - && curl -fsSL https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | bash \ |
9 | | - && apt-get install -y --no-install-recommends crowdsec-firewall-bouncer-nftables \ |
| 12 | + && apt-get install -y --no-install-recommends ca-certificates curl gettext-base \ |
10 | 13 | && rm -rf /var/lib/apt/lists/* |
11 | 14 |
|
| 15 | +RUN set -e; \ |
| 16 | + raw_arch="${TARGETARCH:-$(dpkg --print-architecture)}"; \ |
| 17 | + case "$raw_arch" in \ |
| 18 | + amd64) bouncer_arch=amd64 ;; \ |
| 19 | + arm64) bouncer_arch=arm64 ;; \ |
| 20 | + arm|armhf|armv7) bouncer_arch=armv7 ;; \ |
| 21 | + 386|i386) bouncer_arch=386 ;; \ |
| 22 | + ppc64le) bouncer_arch=ppc64le ;; \ |
| 23 | + riscv64) bouncer_arch=riscv64 ;; \ |
| 24 | + s390x) bouncer_arch=s390x ;; \ |
| 25 | + *) echo "unsupported architecture for cs-firewall-bouncer: ${raw_arch}" >&2; exit 1 ;; \ |
| 26 | + esac; \ |
| 27 | + curl -fsSL "https://github.com/crowdsecurity/cs-firewall-bouncer/releases/download/v${BOUNCER_VERSION}/crowdsec-firewall-bouncer-linux-${bouncer_arch}.tgz" \ |
| 28 | + | tar -xzf - -C /tmp; \ |
| 29 | + install -m 0755 "/tmp/crowdsec-firewall-bouncer-v${BOUNCER_VERSION}/crowdsec-firewall-bouncer" /usr/local/bin/crowdsec-firewall-bouncer; \ |
| 30 | + rm -rf "/tmp/crowdsec-firewall-bouncer-v${BOUNCER_VERSION}" |
| 31 | + |
12 | 32 | COPY docker-bouncer-entrypoint.sh /entrypoint.sh |
13 | 33 | RUN chmod +x /entrypoint.sh |
14 | 34 |
|
|
0 commit comments