Skip to content

Commit

Permalink
Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lt committed Oct 14, 2023
1 parent f3bfcc4 commit 418e55e
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 @@ -9,7 +9,9 @@ WORKDIR /build/ffmpeg-api

COPY . /build/ffmpeg-api

RUN cargo build --release
RUN --mount=type=cache,target=~/.cargo \
--mount=type=cache,target=/build/ffmpeg-api/target \
cargo build --release

FROM alpine:3.18

Expand Down

0 comments on commit 418e55e

Please sign in to comment.