FROM docker.io/golang:1.23 AS build WORKDIR /src COPY go.* /src/ RUN go mod download COPY * /src/ RUN CGO_ENABLED=0 go build -o /sshlog . # Final image FROM scratch COPY --from=build /sshlog / ENTRYPOINT ["/sshlog", "-a", "0.0.0.0:2222"] EXPOSE 2222