18 lines
270 B
Docker
18 lines
270 B
Docker
|
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" ]
|