mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-12-27 11:41:41 +00:00
15 lines
244 B
Docker
15 lines
244 B
Docker
FROM golang:1 as builder
|
|
|
|
WORKDIR /go/src/app
|
|
COPY go.* ./
|
|
RUN go mod download
|
|
COPY *.go ./
|
|
RUN CGO_ENABLED=0 go build .
|
|
|
|
####################################
|
|
|
|
FROM alpine
|
|
COPY --from=builder /go/src/app/gcloud .
|
|
EXPOSE 8080
|
|
CMD [ "./gcloud" ]
|