mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
12 lines
202 B
Docker
12 lines
202 B
Docker
FROM golang:latest as builder
|
|
ADD main.go /
|
|
WORKDIR /
|
|
RUN go mod init proxy
|
|
RUN CGO_ENABLED=0 go build -o main .
|
|
|
|
FROM scratch
|
|
WORKDIR /
|
|
EXPOSE 3011
|
|
COPY --from=builder /main /main
|
|
ENTRYPOINT ["/main"]
|