AkshayStark commited on
Commit
245aff6
·
1 Parent(s): d72ac61
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -33,8 +33,6 @@ RUN apt-get update && apt-get install -y \
33
 
34
  # Install Poetry
35
  RUN pip install --no-cache-dir poetry
36
- RUN pip install -g playwright@1.48.2
37
-
38
 
39
  # Set Poetry virtualenvs to be inside the project
40
  ENV POETRY_VIRTUALENVS_IN_PROJECT=true
@@ -45,9 +43,9 @@ COPY pyproject.toml poetry.lock ./
45
  # Install dependencies
46
  RUN poetry install --no-root
47
 
48
- # Install Playwright and its dependencies correctly
49
- # RUN poetry run pip install playwright
50
- # RUN poetry run playwright install --with-deps chromium # Ensure Chromium is installed properly
51
 
52
  # Copy the rest of the application
53
  COPY . .
 
33
 
34
  # Install Poetry
35
  RUN pip install --no-cache-dir poetry
 
 
36
 
37
  # Set Poetry virtualenvs to be inside the project
38
  ENV POETRY_VIRTUALENVS_IN_PROJECT=true
 
43
  # Install dependencies
44
  RUN poetry install --no-root
45
 
46
+ # Install Playwright within Poetry environment
47
+ RUN poetry run pip install playwright==1.48.2
48
+ RUN poetry run playwright install --with-deps chromium # Ensures Playwright browsers are installed properly
49
 
50
  # Copy the rest of the application
51
  COPY . .