Skip to content

Commit 898b3f6

Browse files
committed
update docker install system dependencies without mixing old Debian repos
1 parent 5ef6dc2 commit 898b3f6

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

Dockerfile

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,47 @@
11
FROM python:3.10
22
ENV PYTHONDONTWRITEBYTECODE=1
33
ENV PYTHONUNBUFFERED=1
4-
RUN echo 'deb http://archive.debian.org/debian stretch main contrib non-free' >> /etc/apt/sources.list && \
5-
apt-get update && \
4+
5+
# Install system dependencies without mixing old Debian repos
6+
RUN apt-get update && \
67
apt-get autoremove -y && \
7-
apt-get install -y libssl1.0-dev curl git nano wget && \
8-
apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \
9-
rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/partial/*
8+
apt-get install -y \
9+
curl \
10+
git \
11+
nano \
12+
wget \
13+
ca-certificates \
14+
fonts-liberation \
15+
libasound2 \
16+
libatk1.0-0 \
17+
libcairo2 \
18+
libcups2 \
19+
libdbus-1-3 \
20+
libexpat1 \
21+
libfontconfig1 \
22+
libgdk-pixbuf2.0-0 \
23+
libglib2.0-0 \
24+
libgtk-3-0 \
25+
libnspr4 \
26+
libnss3 \
27+
libpango-1.0-0 \
28+
libpangocairo-1.0-0 \
29+
libx11-6 \
30+
libx11-xcb1 \
31+
libxcb1 \
32+
libxcomposite1 \
33+
libxcursor1 \
34+
libxdamage1 \
35+
libxext6 \
36+
libxfixes3 \
37+
libxi6 \
38+
libxrandr2 \
39+
libxrender1 \
40+
libxss1 \
41+
libxtst6 \
42+
lsb-release \
43+
xdg-utils && \
44+
rm -rf /var/lib/apt/lists/*
1045

1146

1247
WORKDIR /code

0 commit comments

Comments
 (0)