husseinelsaadi commited on
Commit
36f3374
·
1 Parent(s): 57a37ae

Dockerfile updated

Browse files
Files changed (2) hide show
  1. Dockerfile +15 -28
  2. README.md +3 -5
Dockerfile CHANGED
@@ -1,34 +1,21 @@
1
- FROM python:3.10-slim
 
2
 
3
- # Install OS dependencies
4
- RUN apt-get update && apt-get install -y \
5
- ffmpeg libsndfile1 libsndfile1-dev libgl1 git curl \
6
- build-essential pkg-config && \
7
- rm -rf /var/lib/apt/lists/*
8
 
9
- # Set working directory
10
- WORKDIR /app
 
 
11
 
12
- # Copy requirements first for better caching
13
  COPY requirements.txt .
 
14
 
15
- # Install Python dependencies
16
- RUN pip install --upgrade pip
17
- RUN pip install -r requirements.txt
18
-
19
- # Copy everything to the container
20
- COPY . .
21
-
22
- # Create necessary directories with proper permissions
23
- RUN mkdir -p static/audio temp backend/instance uploads/resumes data/resumes /tmp/audio /tmp/interview_temp && \
24
- chmod 777 /tmp/audio /tmp/interview_temp
25
-
26
- # Expose port
27
- EXPOSE 7860
28
-
29
- # Set environment variables
30
- ENV FLASK_APP=app.py
31
- ENV FLASK_ENV=production
32
 
33
- # Run the app
34
- CMD ["python", "app.py"]
 
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"]
README.md CHANGED
@@ -1,9 +1,7 @@
1
  ---
2
- title: Codingo
3
- emoji: 🤖
4
- colorFrom: indigo
5
- colorTo: pink
6
  sdk: docker
7
  app_file: app.py
8
- pinned: false
 
9
  ---
 
1
  ---
2
+ title: Codingo Interview App
 
 
 
3
  sdk: docker
4
  app_file: app.py
5
+ python_version: "3.10"
6
+ hardware: gpu
7
  ---