rajthakkar123 commited on
Commit
32a41ef
·
verified ·
1 Parent(s): 34a3e4d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,9 +1,13 @@
1
- FROM mcr.microsoft.com/playwright/python:latest
 
2
 
3
  WORKDIR /app
4
  COPY requirements.txt /app/requirements.txt
 
 
5
  RUN pip install --no-cache-dir -r /app/requirements.txt
6
 
7
  COPY . /app
 
8
  EXPOSE 7860
9
  CMD ["python", "app.py"]
 
1
+ # use Playwright official Python image that already contains browsers & deps
2
+ FROM mcr.microsoft.com/playwright/python:v1.54.0-jammy
3
 
4
  WORKDIR /app
5
  COPY requirements.txt /app/requirements.txt
6
+
7
+ # install Python deps (including playwright==1.54.0)
8
  RUN pip install --no-cache-dir -r /app/requirements.txt
9
 
10
  COPY . /app
11
+
12
  EXPOSE 7860
13
  CMD ["python", "app.py"]