aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 4052183e794df02527dc73f4e81e532c79a97e81 (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"]