From 0eb8eff904a3c45ff27d81ffe160cfc0b2f9e677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Sat, 30 Sep 2023 16:46:32 -0400 Subject: [PATCH] add Dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..94a2528 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:alpine AS builder +RUN apk add --no-cache git + +COPY . /src/pkg/ + +WORKDIR /src/pkg/cmd/inbound + +RUN go build -o /go/bin/inbound + +FROM alpine +RUN apk add --no-cache ca-certificates +COPY --from=builder /go/bin/inbound /go/bin/inbound + +ENTRYPOINT ["/go/bin/inbound"]