Skip to content

Commit

Permalink
Update Dockerfile for redhat scan (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
clamoriniere committed Mar 27, 2020
1 parent e776ef2 commit 3532113
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ARG TAG=0.1.3
FROM golang as build-env
ARG TAG

Expand All @@ -6,6 +7,18 @@ COPY . .
RUN make TAG=$TAG GOMOD="-mod=vendor" build

FROM registry.access.redhat.com/ubi7/ubi-minimal:latest AS final
ARG TAG

LABEL name="datadog/operator"
LABEL vendor="Datadog Inc."
LABEL version=$TAG
LABEL release=$TAG
LABEL summary="The Datadog Operator aims at providing a new way to deploy the Datadog Agent on Kubernetes"
LABEL description="Datadog provides a modern monitoring and analytics platform. Gather \
metrics, logs and traces for full observability of your Kubernetes cluster with \
Datadog Operator."

RUN mkdir -p /licences

ENV OPERATOR=/usr/local/bin/datadog-operator \
USER_UID=1001 \
Expand All @@ -14,9 +27,13 @@ ENV OPERATOR=/usr/local/bin/datadog-operator \
# install operator binary
COPY --from=build-env /src/controller ${OPERATOR}

COPY ./LICENSE /licenses/LICENSE
COPY ./LICENSE-3rdparty.csv /licenses/LICENSE-3rdparty
RUN chmod -R 755 /licences

COPY --from=build-env /src/build/bin /usr/local/bin
RUN /usr/local/bin/user_setup

ENTRYPOINT ["/usr/local/bin/entrypoint"]

USER ${USER_UID}
USER ${USER_UID}

0 comments on commit 3532113

Please sign in to comment.