oc-monitord/Dockerfile

18 lines
270 B
Docker
Raw Normal View History

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