add Dockerfile
This commit is contained in:
parent
f18ca0941a
commit
e1e739e026
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue