gobuch/cloud-provider/docker-compose/Dockerfile.receiver

14 lines
207 B
Docker
Raw Permalink Normal View History

2020-08-21 04:26:40 +00:00
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"]