Spaces:
Paused
Paused
python3.12
Browse files- Dockerfile +23 -9
Dockerfile
CHANGED
@@ -35,19 +35,33 @@ ARG PYTHON_VERSION=3.12
|
|
35 |
# Reference: https://pip.pypa.io/en/stable/installation/#get-pip-py
|
36 |
ARG GET_PIP_URL="https://bootstrap.pypa.io/get-pip.py"
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
# RUN apt-get update && apt-get install -y python3 python3-pip git
|
47 |
-
RUN
|
48 |
|
49 |
# Install vLLM
|
50 |
-
RUN
|
51 |
|
52 |
RUN useradd -m appuser
|
53 |
USER appuser
|
|
|
35 |
# Reference: https://pip.pypa.io/en/stable/installation/#get-pip-py
|
36 |
ARG GET_PIP_URL="https://bootstrap.pypa.io/get-pip.py"
|
37 |
|
38 |
+
# Set environment variables to avoid interactive prompts
|
39 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
40 |
+
|
41 |
+
# Update the package list and install necessary dependencies
|
42 |
+
RUN apt-get update && \
|
43 |
+
apt-get install -y software-properties-common
|
44 |
+
|
45 |
+
# Add the 'deadsnakes' PPA to get Python 3.12
|
46 |
+
RUN add-apt-repository ppa:deadsnakes/ppa
|
47 |
+
|
48 |
+
# Update the package list again to include the new repository
|
49 |
+
RUN apt-get update
|
50 |
+
|
51 |
+
# Install Python 3.12, pip, and other necessary development tools
|
52 |
+
RUN apt-get install -y tzdata git python3.12 python3.12-venv python3.12-dev
|
53 |
+
|
54 |
+
# Create a symbolic link to make 'python' and 'pip' commands work
|
55 |
+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
|
56 |
+
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
57 |
+
|
58 |
+
RUN python --version && python -m pip --version
|
59 |
|
60 |
# RUN apt-get update && apt-get install -y python3 python3-pip git
|
61 |
+
# RUN pip install --upgrade pip
|
62 |
|
63 |
# Install vLLM
|
64 |
+
RUN pip install vllm==0.10.0 --extra-index-url https://download.pytorch.org/whl/cu113
|
65 |
|
66 |
RUN useradd -m appuser
|
67 |
USER appuser
|