SameerArz commited on
Commit
d1055a8
·
verified ·
1 Parent(s): 8071f10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -9
Dockerfile CHANGED
@@ -1,28 +1,21 @@
1
- # Use an official Python runtime as the base image
2
  FROM python:3.9-slim
3
 
4
- # Set working directory in the container
5
  WORKDIR /app
6
 
7
- # Copy requirements.txt to the working directory
8
  COPY requirements.txt .
9
 
10
- # Install system dependencies (for moviepy and audio/video processing)
11
  RUN apt-get update && apt-get install -y \
12
  ffmpeg \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy the application code to the container
19
  COPY app.py .
20
 
21
- # Expose the port Gradio will run on
22
  EXPOSE 7860
23
 
24
- # Set environment variable for Groq API key (to be provided at runtime)
25
  ENV GROQ_API_KEY=""
 
 
26
 
27
- # Command to run the application
28
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
 
 
7
  RUN apt-get update && apt-get install -y \
8
  ffmpeg \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
13
  COPY app.py .
14
 
 
15
  EXPOSE 7860
16
 
 
17
  ENV GROQ_API_KEY=""
18
+ ENV HTTP_PROXY=""
19
+ ENV HTTPS_PROXY=""
20
 
 
21
  CMD ["python", "app.py"]