Skip to content

Commit

Permalink
Fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lt committed Oct 14, 2023
1 parent 418e55e commit 6afea78
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 @@ -13,11 +13,13 @@ RUN --mount=type=cache,target=~/.cargo \
--mount=type=cache,target=/build/ffmpeg-api/target \
cargo build --release

RUN cp /build/ffmpeg-api/target/release/ffmpeg-api /build/ffmpeg-api/output

FROM alpine:3.18

RUN apk add --no-cache ffmpeg

COPY --from=builder /build/ffmpeg-api/target/release/ffmpeg-api /usr/local/bin/ffmpeg-api
COPY --from=builder /build/ffmpeg-api/output /usr/local/bin/ffmpeg-api

ENTRYPOINT ["/usr/local/bin/ffmpeg-api"]

Expand Down

0 comments on commit 6afea78

Please sign in to comment.