launch oc-monitor locally or in a container
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
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" ]
|
||||
Reference in New Issue
Block a user