Files
tchivert fc56134022
build / build (push) Successful in 8m59s
fix alpine issues with sqlite go package
2024-04-06 12:18:54 +02:00

21 lines
276 B
Docker

FROM golang AS build
WORKDIR /app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=1 GOOS=linux go build -o ssh-tarpit .
FROM debian:stable-slim
WORKDIR /app
COPY --from=build /app/ssh-tarpit ./
EXPOSE 2222
ENTRYPOINT ["/app/ssh-tarpit"]