James Frecheville commited on
Commit
3855d36
·
1 Parent(s): e0a76c8

Fix dependency conflicts and update system dependencies

Browse files
Files changed (2) hide show
  1. Dockerfile +12 -1
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies for Playwright
4
  RUN apt-get update && apt-get install -y \
5
  libnss3 \
6
  libnspr4 \
@@ -17,6 +17,10 @@ RUN apt-get update && apt-get install -y \
17
  libpangocairo-1.0-0 \
18
  libgdk-pixbuf2.0-0 \
19
  libgtk-3-0 \
 
 
 
 
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
  # Set working directory
@@ -33,6 +37,13 @@ RUN playwright install-deps
33
  # Copy the rest of the application
34
  COPY . .
35
 
 
 
 
 
 
 
 
36
  # Expose the port
37
  EXPOSE 7861
38
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies for Playwright and other packages
4
  RUN apt-get update && apt-get install -y \
5
  libnss3 \
6
  libnspr4 \
 
17
  libpangocairo-1.0-0 \
18
  libgdk-pixbuf2.0-0 \
19
  libgtk-3-0 \
20
+ libgl1-mesa-glx \
21
+ libsm6 \
22
+ libxext6 \
23
+ ffmpeg \
24
  && rm -rf /var/lib/apt/lists/*
25
 
26
  # Set working directory
 
37
  # Copy the rest of the application
38
  COPY . .
39
 
40
+ # Set environment variables
41
+ ENV GRADIO_SERVER_NAME=0.0.0.0
42
+ ENV GRADIO_SERVER_PORT=7861
43
+ ENV GRADIO_ANALYTICS_ENABLED=false
44
+ ENV GRADIO_ALLOW_FLAGGING=false
45
+ ENV GRADIO_QUEUE_ENABLED=false
46
+
47
  # Expose the port
48
  EXPOSE 7861
49
 
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.19.2
2
  docx2markdown>=0.1.1
3
  chunkr-ai>=0.0.41
4
  camel-ai[all]==0.2.36
 
1
+ gradio>=3.50.2,<4.0.0
2
  docx2markdown>=0.1.1
3
  chunkr-ai>=0.0.41
4
  camel-ai[all]==0.2.36