Spaces:
Sleeping
Sleeping
| # Use an official CUDA runtime as a parent image | |
| FROM nvidia/cuda:11.4.2-runtime-ubuntu20.04 | |
| # Set the working directory in the container to /app | |
| WORKDIR /app | |
| # Copy the current directory contents into the container at /app | |
| COPY . /app | |
| # Install any needed packages specified in requirements.txt | |
| RUN apt-get update && apt-get install -y \ | |
| python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip3 install --no-cache-dir -r requirements.txt | |
| # Make port 80 available to the world outside this container | |
| EXPOSE 80 | |
| # Define environment variable | |
| # ENV NAME World | |
| # Run app.py when the container launches | |
| CMD ["python3", "example.py"] |