/
Dockerfile
32 lines (26 loc) · 1.19 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
FROM jrottenberg/ffmpeg:4.3.1-ubuntu1804
LABEL authors="Selenium <selenium-developers@googlegroups.com>"
#================================================
# Customize sources for apt-get
#================================================
RUN echo "deb http://archive.ubuntu.com/ubuntu bionic main universe\n" > /etc/apt/sources.list \
&& echo "deb http://archive.ubuntu.com/ubuntu bionic-updates main universe\n" >> /etc/apt/sources.list \
&& echo "deb http://security.ubuntu.com/ubuntu bionic-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 -qqy --no-install-recommends install \
supervisor x11-xserver-utils \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
#======================================
# Add Supervisor configuration file
#======================================
COPY supervisord.conf /etc
COPY entry_point.sh video.sh /opt/bin/
RUN mkdir -p /var/run/supervisor /var/log/supervisor /videos
ENTRYPOINT ["/opt/bin/entry_point.sh"]
CMD ["/opt/bin/entry_point.sh"]