You've already forked ssh-tarpit
21 lines
276 B
Docker
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"]
|