oc-monitord/Dockerfile

19 lines
335 B
Docker

FROM golang:alpine AS builder
WORKDIR /app
COPY . .
RUN apt install tar/stable
RUN go build .
RUN mkdir workflows/
FROM scratch
WORKDIR /app
COPY --from=builder /bin/tar /bin/tar
COPY conf/ocmonitor_conf.json /app/conf/
COPY --from=builder /app/oc-monitor .
COPY --from=builder /app/workflows/ .
ENTRYPOINT [ "/app/oc-monitor" ]