FROM golang:alpine AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o ssh ./main.go FROM alpine:3.21 WORKDIR /root/ COPY --from=builder /app/ssh . CMD TERM=xterm-256color ./ssh