aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 0c084b436f8d8dcf9c67379b9239453e2ee4bee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM golang:1.12-alpine AS builder
WORKDIR /app
COPY . /app
RUN apk add --no-cache git make \
    && make linux-amd64

# Runtime
FROM scratch
COPY --from=builder /app/build/tarpit-linux-amd64 /tarpit
USER 65534:65534
EXPOSE 2022
ENTRYPOINT ["/tarpit"]
CMD ["-p", "2022"]