SakshamJr commited on
Commit
58f601f
·
verified ·
1 Parent(s): 73774db

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -10
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.11
2
 
3
  WORKDIR /app
4
 
@@ -7,19 +7,24 @@ RUN apt-get update && apt-get install -y \
7
  git \
8
  git-lfs \
9
  ffmpeg \
10
- && rm -rf /var/lib/apt/lists/* \
11
- && git lfs install
12
 
13
- # Copy requirements and install Python packages
14
- COPY requirements.txt .
15
- RUN pip install --no-cache-dir --upgrade pip && \
16
- pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy application files
 
19
  COPY . .
20
 
21
- # Expose Gradio port
 
 
 
 
22
  EXPOSE 7860
23
 
24
- # Run the application
 
 
 
25
  CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
7
  git \
8
  git-lfs \
9
  ffmpeg \
10
+ && rm -rf /var/lib/apt/lists/*
 
11
 
12
+ # Initialize git-lfs
13
+ RUN git lfs install
 
 
14
 
15
+ # Copy files
16
+ COPY requirements.txt .
17
  COPY . .
18
 
19
+ # Install Python packages
20
+ RUN pip install --no-cache-dir --upgrade pip
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ # Expose port
24
  EXPOSE 7860
25
 
26
+ # Set environment variable for Gradio
27
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
28
+
29
+ # Run app
30
  CMD ["python", "app.py"]