infra/op-conductor-mon/Dockerfile
felipe 28bb7461e9
feat: op-conductor-mon (#1)
* feat: op-conductor-mon

* Update CODEOWNERS
2024-05-24 14:34:07 -07:00

19 lines
384 B
Docker

FROM golang:1.21.3-alpine3.18 as builder
COPY ./op-conductor-mon /app
WORKDIR /app
RUN apk add --no-cache make jq bash git alpine-sdk
RUN make build
FROM alpine:3.18
RUN apk --no-cache add make jq bash git alpine-sdk redis
RUN addgroup -S app && adduser -S app -G app
USER app
WORKDIR /app
COPY --from=builder /app/bin/op-conductor-mon /app
ENTRYPOINT ["/app/op-conductor-mon"]