Last active
December 2, 2019 16:29
-
-
Save zimbatm/93ab715f194a4ee755926fd3f35f1ea0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.13.1 as builder | |
RUN mkdir -p /module | |
COPY go.mod /module/ | |
COPY go.sum /module/ | |
WORKDIR /module | |
RUN go mod download | |
COPY go /module/go/ | |
WORKDIR /module/go/cmd/traces | |
RUN CGO_ENABLED=0 go build -o /traces . | |
FROM alpine:latest | |
RUN apk --no-cache add ca-certificates | |
WORKDIR /root/ | |
COPY --from=builder /traces / | |
EXPOSE 8090 | |
VOLUME [ "/data" ] | |
CMD ["/traces", "--db-dir", "/data"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment