yusufs commited on
Commit
ae9f9f3
·
verified ·
1 Parent(s): 07f1655

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -38,17 +38,19 @@ RUN apt-get update
38
  # Install Python 3.12, pip, and other necessary development tools
39
  RUN apt-get install -y tzdata git python3.12 python3.12-venv python3.12-dev
40
 
41
- # Create a symbolic link to make 'python' and 'pip' commands work
42
- RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
43
- update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
 
44
 
45
- RUN python --version && python -m pip --version
 
46
 
47
  # RUN apt-get update && apt-get install -y python3 python3-pip git
48
  # RUN pip install --upgrade pip
49
 
50
  # Install vLLM
51
- RUN pip install vllm==0.10.0 --extra-index-url https://download.pytorch.org/whl/cu113
52
 
53
  RUN useradd -m appuser
54
  USER appuser
 
38
  # Install Python 3.12, pip, and other necessary development tools
39
  RUN apt-get install -y tzdata git python3.12 python3.12-venv python3.12-dev
40
 
41
+ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 \
42
+ && update-alternatives --set python3 /usr/bin/python3.12 \
43
+ && ln -sf /usr/bin/python3.12-config /usr/bin/python3-config \
44
+ && curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
45
 
46
+
47
+ RUN python3 --version && python3 -m pip3 --version
48
 
49
  # RUN apt-get update && apt-get install -y python3 python3-pip git
50
  # RUN pip install --upgrade pip
51
 
52
  # Install vLLM
53
+ RUN pip3 install vllm==0.10.0 --extra-index-url https://download.pytorch.org/whl/cu113
54
 
55
  RUN useradd -m appuser
56
  USER appuser