mrfakename commited on
Commit
573f124
·
verified ·
1 Parent(s): 2e10dbd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -11,9 +11,12 @@ RUN apt-get update -y && \
11
  apt-get remove -y python3 && \
12
  alias pip='python3.11 -m pip' && \
13
  alias python='python3.11' && \
14
- chmod +x python && \
15
- apt-get install -y python3.11 python3-pip && \
16
- pip install packaging
 
 
 
17
  RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
18
  ENV PATH="/root/.cargo/bin:${PATH}"
19
 
 
11
  apt-get remove -y python3 && \
12
  alias pip='python3.11 -m pip' && \
13
  alias python='python3.11' && \
14
+ apt-get install -y python3.11 python3-pip
15
+
16
+ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 999 \
17
+ && update-alternatives --config python3 && ln -s /usr/bin/python3 /usr/bin/python
18
+
19
+ RUN pip install packaging
20
  RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
21
  ENV PATH="/root/.cargo/bin:${PATH}"
22