mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-12-28 03:41:46 +00:00
14 lines
207 B
Docker
14 lines
207 B
Docker
|
FROM golang:1 as builder
|
||
|
|
||
|
WORKDIR /go/src/app
|
||
|
|
||
|
COPY go.* ./
|
||
|
RUN go mod download
|
||
|
|
||
|
COPY . .
|
||
|
RUN CGO_ENABLED=0 go build -o app ./cmd/receiver
|
||
|
|
||
|
FROM alpine:latest
|
||
|
COPY --from=builder /go/src/app .
|
||
|
CMD ["./app"]
|