Skip to content

Commit

Permalink
Use Ubuntu 20.04 LTS on Docker image
Browse files Browse the repository at this point in the history
- Use Ubuntu 20.04 LTS as base image to pull newer packages
- Remove ffmpeg PPA and PPA tools: As Ubuntu 20.04 brings ffmepg 4.2.x+
- python-is-python3: Simple package that symlinks python -> python3
- DEBIAN_FRONTEND=noninteractive: This disables all user-interactive prompt when using package tools.
  • Loading branch information
sukso96100 authored Mar 31, 2022
1 parent 9d2852f commit 1cc5aeb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
ARG FFMPEG_VERSION=4.2.2

FROM ubuntu:bionic
ARG FFMPEG_VERSION
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive

WORKDIR /usr/src/app

RUN apt-get update && apt-get install -y software-properties-common && apt-get update && add-apt-repository ppa:jonathonf/ffmpeg-4

RUN ln -s -f /bin/true /usr/bin/chfn \
&& apt-get update && apt-get install -y \
python-is-python3 \
python3-pip \
python3-dev \
xvfb \
Expand All @@ -26,8 +23,7 @@ RUN ln -s -f /bin/true /usr/bin/chfn \
&& chown -R 1001:0 /home/lithium /run/user/lithium /var/run/pulse \
&& chmod -R g=u /home/lithium /run/user/lithium /var/run/pulse

RUN ln -s /usr/bin/python3 /usr/local/bin/python \
&& pip3 install --upgrade pip
RUN pip3 install --upgrade pip

COPY py_requirements.txt ./

Expand Down

0 comments on commit 1cc5aeb

Please sign in to comment.