RishitMishra commited on
Commit
d036545
·
verified ·
1 Parent(s): 5e7ce93

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -2,16 +2,26 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && \
6
  apt-get install -y git build-essential && \
7
  apt-get clean && rm -rf /var/lib/apt/lists/*
8
 
9
- # Install pip + packaging up front to avoid build errors
10
  RUN pip install --no-cache-dir --upgrade pip setuptools packaging
11
 
 
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
 
 
 
 
 
 
15
  COPY app.py .
16
 
17
  EXPOSE 7860
@@ -19,4 +29,3 @@ EXPOSE 7860
19
  CMD ["python", "app.py"]
20
 
21
 
22
-
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install git + build essentials
6
  RUN apt-get update && \
7
  apt-get install -y git build-essential && \
8
  apt-get clean && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Upgrade pip + tooling
11
  RUN pip install --no-cache-dir --upgrade pip setuptools packaging
12
 
13
+ # Pre-install core packages
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Now clone and install GUI-Actor and Whisper
18
+ RUN git clone https://github.com/microsoft/GUI-Actor.git && \
19
+ pip install -e GUI-Actor
20
+
21
+ RUN pip install git+https://github.com/openai/whisper.git
22
+ RUN pip install qwen-vl-utils
23
+
24
+ # Copy your app
25
  COPY app.py .
26
 
27
  EXPOSE 7860
 
29
  CMD ["python", "app.py"]
30
 
31