gmon/Dockerfile

16 lines
281 B
Text
Raw Permalink Normal View History

2020-11-16 13:22:15 +01:00
FROM golang AS build
COPY ./go.* /src/
WORKDIR /src
RUN go mod download
COPY . /src
RUN CGO_ENABLED=0 go build -o /gmon
# Build the final image
FROM alpine
COPY --from=build /gmon /usr/bin/
ENTRYPOINT [ "gmon" ]
CMD [ "--config=/data/config.toml", "--rules=/data/rules.toml" ]