oc-monitord/Dockerfile

14 lines
265 B
Docker

FROM golang:alpine AS builder
WORKDIR /app
COPY . .
RUN apt install tar/stable
RUN go build .
FROM argoproj/argocd:latest
WORKDIR /app
COPY --from=builder /bin/tar /bin/tar
COPY conf/docker_ocmonitord_conf.json /app/conf/
COPY --from=builder /app/oc-monitord .