-
-
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.
Updated to use based ffmpeg:6.0-alpine. Reduce image size
- Loading branch information
Showing
2 changed files
with
14 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
FROM jrottenberg/ffmpeg:6.0-ubuntu2004 | ||
FROM jrottenberg/ffmpeg:6.0-alpine | ||
LABEL authors="Selenium <[email protected]>" | ||
LABEL authors="Happy TestOps <[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 | ||
|
||
#====================================== | ||
# Add Supervisor configuration files | ||
#====================================== | ||
RUN mkdir -p /opt/bin/ | ||
RUN mkdir -p /var/run/supervisor /var/log/supervisor /videos | ||
|
||
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"] | ||
|
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