Update Dockerfile
Browse files- Dockerfile +2 -10
Dockerfile
CHANGED
@@ -38,16 +38,8 @@ RUN apt-get update && apt-get install -y \
|
|
38 |
python3.9 \
|
39 |
python3.9-distutils \
|
40 |
python3.9-dev \
|
41 |
-
&&
|
42 |
-
|
43 |
-
# Install pip for Python 3.9
|
44 |
-
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
|
45 |
-
|
46 |
-
# Set Python 3.9 as the default Python version
|
47 |
-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 && \
|
48 |
-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 && \
|
49 |
-
update-alternatives --config python <<< '1' && \
|
50 |
-
update-alternatives --config python3 <<< '1'
|
51 |
|
52 |
# Verify Python and pip versions
|
53 |
RUN python --version && pip --version
|
|
|
38 |
python3.9 \
|
39 |
python3.9-distutils \
|
40 |
python3.9-dev \
|
41 |
+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 \
|
42 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
# Verify Python and pip versions
|
45 |
RUN python --version && pip --version
|