-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (34 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM linuxserver/ffmpeg:amd64-7.1-cli-ls11
WORKDIR /
COPY --chown=user:user requirements.txt requirements.txt
RUN apt-get update && apt-get install --no-install-recommends -y \
python-is-python3=3.11.4-1 \
python3-pip=24.0+dfsg-1ubuntu1.1 \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN pip install --break-system-packages --no-cache-dir --requirement requirements.txt \
&& rm requirements.txt
RUN mkdir --parents /data/{input_dir,encoded_dir,archive_dir} \
&& chmod 777 -R /data \
&& usermod -u 1000 abc \
&& chown abc:abc -R /data
USER abc
COPY --chown=abc:abc --chmod=755 scripts/ /scripts
WORKDIR /scripts
ENV INPUT_DIR=/data/input_dir \
ENCODED_DIR=/data/encoded_dir \
ARCHIVE_DIR=/data/archive_dir \
VCODEC=libsvtav1 \
ACODEC=libfdk_aac \
SCODEC=copy \
PRESET=6 \
CRF=32 \
DATE_SUBDIR="false" \
FIRST_AUDIO_PER_LANG_ONLY="true" \
AUDIO_LANGUAGES='[ "eng" ]' \
SUBTITLE_LANGUAGES='[ "eng" ]' \
HIGHEST_CHANNELS="false" \
PYTHONUNBUFFERED=1
ENTRYPOINT [ "python", "/scripts/ffmpeg_automator.py" ]