-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 918 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# syntax=docker/dockerfile:1.4
# Zentinel ModSecurity Agent Container Image
#
# Targets:
# - prebuilt: For CI with pre-built binaries
################################################################################
# Pre-built binary stage (for CI builds)
################################################################################
FROM gcr.io/distroless/cc-debian12:nonroot AS prebuilt
COPY zentinel-modsec-agent /zentinel-modsec-agent
LABEL org.opencontainers.image.title="Zentinel ModSecurity Agent" \
org.opencontainers.image.description="Zentinel ModSecurity Agent for Zentinel reverse proxy" \
org.opencontainers.image.vendor="Raskell" \
org.opencontainers.image.source="https://github.com/zentinelproxy/zentinel-agent-modsec"
ENV RUST_LOG=info,zentinel_modsec_agent=debug \
SOCKET_PATH=/var/run/zentinel/modsec.sock
USER nonroot:nonroot
ENTRYPOINT ["/zentinel-modsec-agent"]