Initial commit with Dockerfile and Go code

This commit is contained in:
2025-11-06 14:43:35 +01:00
commit 1f0cd36375
6 changed files with 213 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY main.go ./
RUN go build -o sshserver main.go
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /app/sshserver /usr/local/bin/sshserver
EXPOSE 22
CMD ["/usr/local/bin/sshserver"]