infra/op-ufm/Dockerfile

31 lines
530 B
Docker
Raw Permalink Normal View History

FROM golang:1.21.1-alpine3.18 as builder
ARG GITCOMMIT=docker
ARG GITDATE=docker
ARG GITVERSION=docker
RUN apk add make jq git gcc musl-dev linux-headers
2023-07-18 10:21:19 -07:00
COPY ./op-ufm /app
WORKDIR /app
RUN make ufm
FROM alpine:3.18
2023-07-18 10:21:19 -07:00
COPY --from=builder /app/entrypoint.sh /bin/entrypoint.sh
COPY --from=builder /app/bin/ufm /bin/ufm
RUN apk update && \
chmod +x /bin/entrypoint.sh
2023-09-06 15:15:32 -07:00
RUN apk add ca-certificates jq curl bind-tools
VOLUME /etc/ufm
2023-07-18 10:21:19 -07:00
EXPOSE 8080
ENTRYPOINT ["/bin/entrypoint.sh"]
2023-07-18 10:21:19 -07:00
CMD ["/bin/ufm", "/etc/ufm/config.toml"]