sshlog/Dockerfile

15 lines
253 B
Text
Raw Permalink Normal View History

FROM docker.io/golang:1.23 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", "-a", "0.0.0.0:2222"]
2021-06-15 23:47:37 +02:00
EXPOSE 2222