mirror of
https://git.sr.ht/~hamburghammer/sshlog
synced 2024-12-22 21:17:40 +01:00
15 lines
252 B
Docker
15 lines
252 B
Docker
FROM docker.io/golang:1.22 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", "-p", "2222", "-4"]
|
|
EXPOSE 2222
|