-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Video/Dockerfile with based image ffmpeg:6.0-alpine (#1981)
[deploy]
- Loading branch information
Showing
6 changed files
with
27 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,29 @@ | ||
FROM jrottenberg/ffmpeg:4.3.1-ubuntu2004 | ||
FROM jrottenberg/ffmpeg:6.0-alpine | ||
LABEL authors="Selenium <[email protected]>" | ||
|
||
#================================================ | ||
# Customize sources for apt-get | ||
#================================================ | ||
RUN echo "deb http://archive.ubuntu.com/ubuntu focal main universe\n" > /etc/apt/sources.list \ | ||
&& echo "deb http://archive.ubuntu.com/ubuntu focal-updates main universe\n" >> /etc/apt/sources.list \ | ||
&& echo "deb http://security.ubuntu.com/ubuntu focal-security main universe\n" >> /etc/apt/sources.list | ||
|
||
# No interactive frontend during docker build | ||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
DEBCONF_NONINTERACTIVE_SEEN=true | ||
|
||
#======================== | ||
# Supervisor | ||
#======================== | ||
RUN apt-get -qqy update \ | ||
&& apt-get upgrade -yq \ | ||
&& apt-get -qqy --no-install-recommends install \ | ||
supervisor x11-xserver-utils x11-utils curl jq python3-pip \ | ||
&& python3 -m pip install --upgrade pip \ | ||
&& python3 -m pip install --upgrade setuptools \ | ||
&& python3 -m pip install --upgrade wheel \ | ||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* | ||
RUN apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --update --virtual .build-deps supervisor bash curl jq xset python3 py3-psutil py3-pip \ | ||
&& ln -sf python3 /usr/bin/python \ | ||
&& rm -rf /tmp/* /var/cache/apk/* | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
RUN python3 -m pip install --no-cache --upgrade --no-cache-dir pip urllib3 setuptools requests wheel | ||
|
||
#====================================== | ||
# Add Supervisor configuration files | ||
#====================================== | ||
ENV SE_VIDEO_FOLDER /videos | ||
RUN mkdir -p /opt/bin/ | ||
RUN mkdir -p /var/run/supervisor /var/log/supervisor ${SE_VIDEO_FOLDER} | ||
|
||
COPY supervisord.conf /etc | ||
COPY entry_point.sh video.sh video_ready.py /opt/bin/ | ||
RUN cd /opt/bin && pip install psutil | ||
|
||
RUN mkdir -p /var/run/supervisor /var/log/supervisor /videos | ||
|
||
RUN chmod +x /opt/bin/* | ||
ENTRYPOINT ["/opt/bin/entry_point.sh"] | ||
CMD ["/opt/bin/entry_point.sh"] | ||
|
||
|
@@ -44,6 +35,5 @@ ENV SE_FRAME_RATE 15 | |
ENV SE_CODEC libx264 | ||
ENV SE_PRESET "-preset ultrafast" | ||
ENV FILE_NAME video.mp4 | ||
ENV SE_VIDEO_FOLDER /videos | ||
|
||
EXPOSE 9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters