mirror of
https://git.sr.ht/~hamburghammer/sshlog
synced 2024-12-22 04:57:40 +01:00
14 lines
253 B
Docker
14 lines
253 B
Docker
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
|