Update Dockerfile-cpu to force python3.9 (#7675)
* Update * Update * Do not install torch * Pillow>9.1 * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile-cpu * Update Dockerfile * fix emoji * reduce scipy * add libpython3.9 * Update Dockerfile
This commit is contained in:
1 parent
bff6e51bc4
commit
c4862fcd31
4 files changed
+13
-10
No files matched your search
@@ -6,15 +6,19 @@ FROM ubuntu:latest
|
||||
# Install linux packages
|
||||
RUN apt update
|
||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
|
||||
RUN apt install -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0
|
||||
RUN alias python=python3
|
||||
RUN apt install -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0 software-properties-common
|
||||
|
||||
# Install python dependencies
|
||||
# Install python3.9
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa -y
|
||||
RUN apt install python3.9 python3.9-distutils libpython3.9 -y
|
||||
# RUN alias python=python3.9
|
||||
|
||||
# Install pip packages
|
||||
COPY requirements.txt .
|
||||
RUN python3 -m pip install --upgrade pip
|
||||
RUN pip install --no-cache -r requirements.txt albumentations gsutil notebook \
|
||||
RUN python3.9 -m pip install --upgrade pip
|
||||
RUN python3.9 -m pip install --no-cache -r requirements.txt albumentations gsutil notebook \
|
||||
coremltools onnx onnx-simplifier onnxruntime openvino-dev tensorflow-cpu tensorflowjs \
|
||||
torch==1.11.0+cpu torchvision==0.12.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
|
||||
torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
|
||||
# Create working directory
|
||||
RUN mkdir -p /usr/src/app
|
||||
|
||||
Reference in new issue
Block a user