mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-23 01:53:19 +03:00
Separated image for TwitchDownloader download in Dockerfile
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -47,6 +47,15 @@ RUN npm config set strict-ssl false && \
|
|||||||
npm install --prod && \
|
npm install --prod && \
|
||||||
ls -al
|
ls -al
|
||||||
|
|
||||||
|
FROM base as python
|
||||||
|
WORKDIR /app
|
||||||
|
COPY docker-utils/GetTwitchDownloader.py .
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y --no-install-recommends python3-minimal python-is-python3 python3-pip && \
|
||||||
|
apt clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN pip install PyGithub, requests
|
||||||
|
RUN python GetTwitchDownloader.py
|
||||||
|
|
||||||
# Final image
|
# Final image
|
||||||
FROM base
|
FROM base
|
||||||
@@ -57,8 +66,6 @@ RUN npm install -g pm2 && \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN pip install pycryptodomex
|
RUN pip install pycryptodomex
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY docker-utils/GetTwitchDownloader.py .
|
|
||||||
RUN python GetTwitchDownloader.py
|
|
||||||
# User 1000 already exist from base image
|
# User 1000 already exist from base image
|
||||||
COPY --chown=$UID:$GID --from=ffmpeg [ "/usr/local/bin/ffmpeg", "/usr/local/bin/ffmpeg" ]
|
COPY --chown=$UID:$GID --from=ffmpeg [ "/usr/local/bin/ffmpeg", "/usr/local/bin/ffmpeg" ]
|
||||||
COPY --chown=$UID:$GID --from=ffmpeg [ "/usr/local/bin/ffprobe", "/usr/local/bin/ffprobe" ]
|
COPY --chown=$UID:$GID --from=ffmpeg [ "/usr/local/bin/ffprobe", "/usr/local/bin/ffprobe" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user