Skip to content

Commit

Permalink
move chown (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Mar 27, 2024
1 parent 93719c0 commit 66e2330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ COPY .mk/ .mk/
# Build
RUN GOARCH=$TARGETARCH make compile
# Prepare output dir
RUN mkdir -p output && chown 65532 output
RUN mkdir -p output

# Create final image from ubi + built binary
FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9/ubi:9.3
WORKDIR /
COPY --from=builder /opt/app-root/build .
COPY --from=builder /opt/app-root/output /output
RUN chown 65532 output
USER 65532:65532

ENTRYPOINT ["/network-observability-cli"]

0 comments on commit 66e2330

Please sign in to comment.