Av1an/Dockerfile
redzic 754c1192fe
Always copy subtitles and all audio tracks (#400)
* Always copy subtitles and all audio tracks

Require mkvmerge for x265

* cargo update

* Fix concat if audio file does not exist

* Use stable rustc in Docker, do not compile VVC

* Use old Docker image for now which works with vapoursynth

* Fix tests.yml

* Use mkvmerge for tests

* Add mkvtoolnix as a dependency in tests.yml
2021-11-07 14:20:12 +02:00

33 lines
774 B
Docker

FROM luigi311/encoders-docker:20210901
ENV MPLCONFIGDIR="/home/app_user/"
ARG DEBIAN_FRONTEND=noninteractive
ARG DEPENDENCIES="mkvtoolnix curl llvm clang"
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
${DEPENDENCIES} && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create user
RUN useradd -ms /bin/bash app_user
USER app_user
# Install rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain stable
ENV PATH="/home/app_user/.cargo/bin:$PATH"
# Copy av1an and build av1an
COPY --chown=app_user . /Av1an
WORKDIR /Av1an
RUN cargo build --release
# Open up /Av1an to all users
RUN chmod 777 /Av1an
VOLUME ["/videos"]
WORKDIR /videos
ENTRYPOINT [ "/Av1an/target/release/av1an" ]