sshlog/Dockerfile

16 lines
252 B
Text
Raw Permalink Normal View History

2024-09-29 17:09:40 +02:00
FROM docker.io/golang:1.22 AS build
2021-06-15 23:47:37 +02:00
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", "-p", "2222", "-4"]
EXPOSE 2222