Skip to content

Commit

Permalink
build: Create /app directory in Dockerfile for application workspace
Browse files Browse the repository at this point in the history
OMG, this is so unexpected, but that RUN mkdir /app before WORKDIR is the issue with kaniko why the cache is being hit. Super strange!!!

Signed-off-by: Eden Reich <[email protected]>
  • Loading branch information
edenreich committed Feb 26, 2025
1 parent 22d8196 commit 82d6449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apk add \
pkgconfig
RUN cargo install cargo-chef --locked && \
rustup target add ${TARGET_ARCH}
RUN mkdir /app
WORKDIR /app

FROM chef AS planner
Expand Down

0 comments on commit 82d6449

Please sign in to comment.