Fix python alias

This commit is contained in:
Josh XT committed 2024-01-22 16:32:30 -05:00
1 parent 85e5e6ab86
commit fcec9d8f5b
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -2,9 +2,10 @@ FROM ubuntu:22.04
ENV HOST 0.0.0.0 ENV HOST 0.0.0.0
RUN apt-get update && apt-get upgrade -y \ RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y git build-essential \ && apt-get install -y git build-essential \
python3 python3-pip gcc wget python3 python3-pip gcc wget \
&& ln -s /usr/bin/python3 /usr/bin/python
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN pip install --no-cache-dir -r requirements_other.txt RUN pip install --no-cache-dir -r requirements_other.txt
EXPOSE 7851 EXPOSE 7851
CMD ["python3", "script.py"] CMD ["python", "script.py"]
+3 -2
View File
@@ -5,7 +5,8 @@ RUN apt-get update && apt-get upgrade -y \
python3 python3-pip gcc wget \ python3 python3-pip gcc wget \
ocl-icd-opencl-dev opencl-headers clinfo \ ocl-icd-opencl-dev opencl-headers clinfo \
libclblast-dev libopenblas-dev \ libclblast-dev libopenblas-dev \
&& mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd && mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd \
&& ln -s /usr/bin/python3 /usr/bin/python
WORKDIR /app WORKDIR /app
COPY . . COPY . .
ENV CUDA_DOCKER_ARCH=all ENV CUDA_DOCKER_ARCH=all
@@ -15,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements_nvidia.txt && \
pip install --no-cache-dir -r requirements_other.txt && \ pip install --no-cache-dir -r requirements_other.txt && \
pip install --no-cache-dir deepspeed pip install --no-cache-dir deepspeed
EXPOSE 7851 EXPOSE 7851
CMD ["python3", "script.py"] CMD ["python", "script.py"]