Skip to content

Commit

Permalink
Merge pull request #85 from Hugo-Trentesaux/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Oct 2, 2024
2 parents 13ba14e + 5ff6862 commit b5651bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/languages/rust-dockerfile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WORKDIR /app
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM base as builder
FROM base AS builder
WORKDIR /app
COPY --from=planner /app/recipe.json recipe.json
RUN --mount=type=cache,target=/usr/local/cargo/registry \
Expand Down Expand Up @@ -86,7 +86,7 @@ By creating the dependency tree separately from the actual installation of depen
### Stage 3: `FROM base as builder`

```dockerfile
FROM base as builder
FROM base AS builder
WORKDIR /app
COPY --from=planner /app/recipe.json recipe.json
RUN --mount=type=cache,target=/usr/local/cargo/registry \
Expand Down

0 comments on commit b5651bc

Please sign in to comment.