ssh-honeypot/Dockerfile

16 lines
239 B
Docker
Raw Normal View History

2023-12-26 16:44:59 +01:00
FROM golang:1.21.5 AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ssh-honeypot .
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/ssh-honeypot .
ENTRYPOINT ["./ssh-honeypot"]