add Dockerfile

This commit is contained in:
Seán C McCord 2023-09-30 16:46:32 -04:00
parent f18ca0941a
commit e1e739e026
Signed by: scm
GPG key ID: FC678714ACA347CB

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM golang:alpine AS builder
RUN apk add --no-cache git
COPY . .
WORKDIR 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"]