-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
25 lines (18 loc) · 665 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# stage 1: build
FROM golang:1.19-alpine AS builder
LABEL maintainer="The M3DB Authors <[email protected]>"
# Install git
RUN apk add --update git
# Add source code
RUN mkdir -p /src
ADD ./src /src
# Build binary
RUN cd /src && go build ./cmd/promremotebench
# stage 2: lightweight "release"
FROM alpine:latest
LABEL maintainer="The M3DB Authors <[email protected]>"
COPY --from=builder /src/promremotebench /bin/
COPY --from=builder /src/config/promremotebench.yml /etc/promremotebench/promremotebench.yml
RUN apk add -U --no-cache ca-certificates
ENTRYPOINT [ "/bin/promremotebench" ]
CMD [ "-config", "/etc/promremotebench/promremotebench.yml" ]