Rivalcoder commited on
Commit
4fd964f
·
1 Parent(s): 078cae9

Use of Playright

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM python:3.11-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Install system dependencies required by Playwright
8
  RUN apt-get update && apt-get install -y \
9
  curl \
10
  gnupg \
@@ -24,6 +24,8 @@ RUN apt-get update && apt-get install -y \
24
  fonts-liberation \
25
  libglib2.0-0 \
26
  libdrm2 \
 
 
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
  # Copy requirements and install
@@ -43,4 +45,4 @@ COPY . .
43
  EXPOSE 7860
44
 
45
  # Run FastAPI
46
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install system dependencies including Playwright requirements
8
  RUN apt-get update && apt-get install -y \
9
  curl \
10
  gnupg \
 
24
  fonts-liberation \
25
  libglib2.0-0 \
26
  libdrm2 \
27
+ libxfixes3 \
28
+ libxkbcommon0 \
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
  # Copy requirements and install
 
45
  EXPOSE 7860
46
 
47
  # Run FastAPI
48
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -7,4 +7,4 @@ langchain
7
  langchain-community
8
  faiss-cpu
9
  google-genai
10
- playwright
 
7
  langchain-community
8
  faiss-cpu
9
  google-genai
10
+ playwright