1
1
FROM archlinux:base-devel AS base
2
2
3
- RUN pacman -Syy --noconfirm
3
+ RUN pacman -Syyu --noconfirm
4
4
5
5
# Install dependancies needed by all steps including runtime step
6
6
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
11
11
# Install dependancies needed by build steps
12
12
RUN pacman -S --noconfirm rust clang nasm git
13
13
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
15
16
WORKDIR /tmp/Av1an
16
17
17
18
18
19
FROM build-base AS planner
19
20
20
- COPY . .
21
- RUN cargo chef prepare --recipe-path recipe.json
21
+ # See previous TODO
22
+ # COPY . .
23
+ # RUN cargo chef prepare
22
24
23
25
24
26
FROM build-base AS cacher
25
27
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
28
31
29
32
30
33
FROM build-base AS build
@@ -40,8 +43,9 @@ RUN git clone https://github.com/xiph/rav1e && \
40
43
# Build av1an
41
44
COPY . /tmp/Av1an
42
45
46
+ # See previous TODO
43
47
# 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
45
49
46
50
RUN cargo build --release && \
47
51
mv ./target/release/av1an /usr/local/bin && \
0 commit comments