Skip to content

Commit

Permalink
fix attempt 2 on mkdir docker (#17)
Browse files Browse the repository at this point in the history
* fix attempt 2

* copy output
  • Loading branch information
jpinsonneau authored Mar 27, 2024
1 parent fe830ff commit 93719c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ COPY .mk/ .mk/

# Build
RUN GOARCH=$TARGETARCH make compile
# Prepare output dir
RUN mkdir -p output && chown 65532 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 .
RUN mkdir -p /output && chown 65532 /output
COPY --from=builder /opt/app-root/output /output
USER 65532:65532

ENTRYPOINT ["/network-observability-cli"]

0 comments on commit 93719c0

Please sign in to comment.