Skip to content

Commit d9a7418

Browse files
authored
Temporarily disable docker caching via cargo-chef (#643)
1 parent 8f617ec commit d9a7418

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Dockerfile

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM archlinux:base-devel AS base
22

3-
RUN pacman -Syy --noconfirm
3+
RUN pacman -Syyu --noconfirm
44

55
# Install dependancies needed by all steps including runtime step
66
RUN pacman -S --noconfirm aom ffmpeg vapoursynth ffms2 libvpx mkvtoolnix-cli svt-av1 vapoursynth-plugin-lsmashsource vmaf
@@ -11,20 +11,23 @@ FROM base AS build-base
1111
# Install dependancies needed by build steps
1212
RUN pacman -S --noconfirm rust clang nasm git
1313

14-
RUN cargo install cargo-chef
14+
# TODO reimplement caching via cargo-chef after it properly fixes its --profile support
15+
# RUN cargo install cargo-chef
1516
WORKDIR /tmp/Av1an
1617

1718

1819
FROM build-base AS planner
1920

20-
COPY . .
21-
RUN cargo chef prepare --recipe-path recipe.json
21+
# See previous TODO
22+
# COPY . .
23+
# RUN cargo chef prepare
2224

2325

2426
FROM build-base AS cacher
2527

26-
COPY --from=planner /tmp/Av1an/recipe.json recipe.json
27-
RUN cargo chef cook --release --recipe-path recipe.json
28+
# See previous TODO
29+
# COPY --from=planner /tmp/Av1an/recipe.json recipe.json
30+
# RUN cargo chef cook --release
2831

2932

3033
FROM build-base AS build
@@ -40,8 +43,9 @@ RUN git clone https://github.com/xiph/rav1e && \
4043
# Build av1an
4144
COPY . /tmp/Av1an
4245

46+
# See previous TODO
4347
# Copy over the cached dependencies
44-
COPY --from=cacher /tmp/Av1an/target /tmp/Av1an/target
48+
# COPY --from=cacher /tmp/Av1an/target /tmp/Av1an/target
4549

4650
RUN cargo build --release && \
4751
mv ./target/release/av1an /usr/local/bin && \

0 commit comments

Comments
 (0)