Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1234567891011121314151617181920FROM python:3.9# Use an official TensorFlow GPU base imageFROM tensorflow/tensorflow:latest-gpu# Set the working directory in the containerWORKDIR /code# Install CUDA drivers (modify the version according to your requirements)RUN apt-get update && apt-get install -y --no-install-recommends \cuda-drivers \&& apt-get clean \&& rm -rf /var/lib/apt/lists/*# Copy requirements and install Python dependenciesCOPY ./requirements.txt /code/requirements.txtRUN pip install --no-cache-dir --upgrade -r /code/requirements.txt# Copy the rest of the application codeCOPY . .1234567891011121314151617181920212223FROM python:3.9FROM nvidia/cuda:11.4.1-cudnn8-devel-ubuntu20.04# Install PythonRUN apt-get update && \apt-get install -y python3.9 python3-pip# Install NumPy and GRPCIORUN pip3 install --no-cache-dir --upgrade numpy grpcio# Set the working directory in the containerWORKDIR /code# Copy the requirements fileCOPY ./requirements.txt /code/requirements.txt# Install dependenciesRUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt# Copy the rest of the application codeCOPY . .
Dockerfile+13-10