Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Sep 3, 2023
1 parent 8fab4e9 commit 8373242
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 @@ -10,5 +10,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo build --release && cp /app/target/release/chisel-operator /app/chisel-operator

FROM redhat/ubi9:latest
COPY --from=build-env /app/chisel-operator /usr/bin/chisel-operator
RUN useradd -u 1001 chisel
USER 1001
COPY --from=build-env --chown=chisel /app/chisel-operator /usr/bin/chisel-operator
CMD ["chisel-operator"]

0 comments on commit 8373242

Please sign in to comment.