diff --git a/docker/beelzebub/Dockerfile b/docker/beelzebub/Dockerfile index a8f452c3..f8df3281 100644 --- a/docker/beelzebub/Dockerfile +++ b/docker/beelzebub/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine AS builder +FROM golang:1.23-alpine AS builder # ENV GO111MODULE=on \ CGO_ENABLED=0 \ @@ -14,26 +14,16 @@ RUN git clone https://github.com/t3chn0m4g3/beelzebub WORKDIR /root/beelzebub RUN go mod download RUN go build -o main . +RUN sed -i "s#logsPath: ./log#logsPath: ./configurations/log/beelzebub.json#g" /root/beelzebub/configurations/beelzebub.yaml +RUN sed -i 's/passwordRegex: "^(root|qwerty|Smoker666|123456|jenkins|minecraft|sinus|alex|postgres|Ly123456)$"/passwordRegex: ".*"/g' /root/beelzebub/configurations/services/ssh-22.yaml # -FROM alpine:3.20 +FROM scratch # COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /root/beelzebub/main /opt/beelzebub/ COPY --from=builder /root/beelzebub/configurations /opt/beelzebub/configurations # -# Setup user, groups and configs -RUN <