From c2aa4e2dfe921896f4f656215760fb8eb14f9485 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 23 Oct 2020 18:12:51 +0200 Subject: [PATCH] Move adg build step Cargo takes a long time to run, this improves the cache efficiency. --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2c53c1..803037a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,15 @@ RUN apt-get -y install \ meson \ vapoursynth-dev +RUN cd /tmp \ + && git clone --depth=1 --recursive https://git.kageru.moe/kageru/adaptivegrain \ + && cd adaptivegrain \ + && cargo build --release \ + && cp target/release/libadaptivegrain_rs.so /usr/lib/x86_64-linux-gnu/vapoursynth/ \ + && cd .. \ + && rm -rf adaptivegrain \ + && rm -rf ~/.cargo + # required by hvf.Deblock_QED (required by fvf.AutoDeblock) RUN cd /tmp \ && git clone --depth=1 https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DCTFilter \ @@ -84,15 +93,6 @@ RUN cd /tmp \ && cd /tmp/ \ && rm -rf vs-placebo -RUN cd /tmp \ - && git clone --depth=1 --recursive https://git.kageru.moe/kageru/adaptivegrain \ - && cd adaptivegrain \ - && cargo build --release \ - && cp target/release/libadaptivegrain_rs.so /usr/lib/x86_64-linux-gnu/vapoursynth/ \ - && cd .. \ - && rm -rf adaptivegrain \ - && rm -rf ~/.cargo - # Runtime dependencies RUN apt-get -y install \ beignet-opencl-icd \