1- FROM jrottenberg/ffmpeg:4.3.1-ubuntu2004
1+ FROM jrottenberg/ffmpeg:6.0-alpine
22LABEL authors="Selenium <selenium-developers@googlegroups.com>"
33
4- # ================================================
5- # Customize sources for apt-get
6- # ================================================
7- RUN echo "deb http://archive.ubuntu.com/ubuntu focal main universe\n " > /etc/apt/sources.list \
8- && echo "deb http://archive.ubuntu.com/ubuntu focal-updates main universe\n " >> /etc/apt/sources.list \
9- && echo "deb http://security.ubuntu.com/ubuntu focal-security main universe\n " >> /etc/apt/sources.list
10-
11- # No interactive frontend during docker build
12- ENV DEBIAN_FRONTEND=noninteractive \
13- DEBCONF_NONINTERACTIVE_SEEN=true
14-
154# ========================
165# Supervisor
176# ========================
18- RUN apt-get -qqy update \
19- && apt-get upgrade -yq \
20- && apt-get -qqy --no-install-recommends install \
21- supervisor x11-xserver-utils x11-utils curl jq python3-pip \
22- && python3 -m pip install --upgrade pip \
23- && python3 -m pip install --upgrade setuptools \
24- && python3 -m pip install --upgrade wheel \
25- && rm -rf /var/lib/apt/lists/* /var/ cache/apt/*
7+ RUN apk update \
8+ && apk upgrade \
9+ && apk add --no-cache --update --virtual .build-deps supervisor bash curl jq xset python3 py3-psutil py3-pip \
10+ && ln -sf python3 /usr/bin/python \
11+ && rm -rf /tmp/* /var/cache/apk/*
12+
13+ ENV PYTHONUNBUFFERED=1
14+ RUN python3 -m pip install --no-cache --upgrade --no- cache-dir pip urllib3 setuptools requests wheel
2615
2716# ======================================
2817# Add Supervisor configuration files
2918# ======================================
19+ ENV SE_VIDEO_FOLDER /videos
20+ RUN mkdir -p /opt/bin/
21+ RUN mkdir -p /var/run/supervisor /var/log/supervisor ${SE_VIDEO_FOLDER}
22+
3023COPY supervisord.conf /etc
3124COPY entry_point.sh video.sh video_ready.py /opt/bin/
32- RUN cd /opt/bin && pip install psutil
33-
34- RUN mkdir -p /var/run/supervisor /var/log/supervisor /videos
3525
26+ RUN chmod +x /opt/bin/*
3627ENTRYPOINT ["/opt/bin/entry_point.sh" ]
3728CMD ["/opt/bin/entry_point.sh" ]
3829
@@ -44,6 +35,5 @@ ENV SE_FRAME_RATE 15
4435ENV SE_CODEC libx264
4536ENV SE_PRESET "-preset ultrafast"
4637ENV FILE_NAME video.mp4
47- ENV SE_VIDEO_FOLDER /videos
4838
4939EXPOSE 9000
0 commit comments