Skip to content

Commit

Permalink
Fix python2 installation
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksejZhmulin committed Apr 6, 2024
1 parent 20bf3ff commit db97866
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
FROM debian:bookworm
MAINTAINER Anton Kozlov <drakon.mega@gmail.com>

## python2 (deprecated)
RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list
RUN echo "deb http://deb.debian.org/debian bullseye-updates main" >> /etc/apt/sources.list.d/bullseye.list
RUN echo "deb http://security.debian.org bullseye-security main" >> /etc/apt/sources.list.d/bullseye.list

## Update the repository and install utils
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
Expand All @@ -18,8 +13,6 @@ RUN apt-get update && \
unzip \
xz-utils \
python3 \
python2 \
python-is-python2 \
curl \
dpkg \
make \
Expand Down Expand Up @@ -66,7 +59,14 @@ RUN apt-get update && \
ffmpeg \
git \
mime-support \
dosfstools && \
dosfstools

## Install python2 (deprecated)
COPY bullseye.list /etc/apt/sources.list.d/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
python2 \
python-is-python2 && \
apt-get clean && \
rm -rf /var/lib/apt /var/cache/apt && \
rm /etc/apt/sources.list.d/bullseye.list
Expand Down
3 changes: 3 additions & 0 deletions bullseye.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
deb http://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian bullseye-updates main
deb http://security.debian.org bullseye-security main

0 comments on commit db97866

Please sign in to comment.