husseinelsaadi commited on
Commit
46f8dfe
·
1 Parent(s): 36f3374
Files changed (2) hide show
  1. Dockerfile +7 -8
  2. README.md +1 -2
Dockerfile CHANGED
@@ -1,21 +1,20 @@
1
- # Use NVIDIA PyTorch image with CUDA 11.8 and cuDNN pre-installed
2
- FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
3
 
4
- # Set up environment
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
  # Install dependencies
8
  RUN apt-get update && apt-get install -y \
9
- python3-pip python3-dev ffmpeg git libsndfile1 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Install Python packages
13
  COPY requirements.txt .
14
  RUN pip install --upgrade pip && pip install -r requirements.txt
15
 
16
- # Copy app
17
  COPY . /app
18
  WORKDIR /app
19
 
20
- # Expose
21
- CMD ["python3", "app.py"]
 
1
+ # Use NVIDIA image with PyTorch, CUDA, cuDNN preinstalled
2
+ FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
3
 
4
+ # Enable non-interactive install
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
  # Install dependencies
8
  RUN apt-get update && apt-get install -y \
9
+ git ffmpeg libsndfile1 python3-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Copy and install Python dependencies
13
  COPY requirements.txt .
14
  RUN pip install --upgrade pip && pip install -r requirements.txt
15
 
16
+ # Copy app files
17
  COPY . /app
18
  WORKDIR /app
19
 
20
+ CMD ["python3", "app.py"]
 
README.md CHANGED
@@ -1,7 +1,6 @@
1
  ---
2
- title: Codingo Interview App
3
  sdk: docker
4
  app_file: app.py
5
- python_version: "3.10"
6
  hardware: gpu
7
  ---
 
1
  ---
2
+ title: Codingo
3
  sdk: docker
4
  app_file: app.py
 
5
  hardware: gpu
6
  ---