Move adg build step

Cargo takes a long time to run, this improves the cache efficiency.
This commit is contained in:
Simon Bruder 2020-10-23 18:12:51 +02:00
parent 131a54dfaf
commit c2aa4e2dfe
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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 \