PHDMAFIN commited on
Commit
c6a6a90
verified
1 Parent(s): d26ab63

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -17
Dockerfile CHANGED
@@ -1,28 +1,14 @@
1
- FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt /app/requirements.txt
6
 
7
- RUN apt-get update && apt-get install -y \
8
- wget \
9
- curl \
10
- gnupg \
11
- ca-certificates \
12
- fonts-liberation \
13
- libnss3 \
14
- libatk-bridge2.0-0 \
15
- libxkbcommon0 \
16
- libgtk-3-0 \
17
- libasound2 \
18
- libxshmfence1 \
19
- libgbm1 \
20
- && rm -rf /var/lib/apt/lists/*
21
-
22
  RUN pip install --no-cache-dir --upgrade pip
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
- RUN python -m playwright install --with-deps chromium
 
26
 
27
  COPY . /app
28
 
 
1
+ FROM mcr.microsoft.com/playwright/python:v1.58.0-noble
2
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt /app/requirements.txt
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  RUN pip install --no-cache-dir --upgrade pip
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Reinstala/asegura Chromium para la versi贸n exacta de Playwright instalada por pip
11
+ RUN python -m playwright install chromium
12
 
13
  COPY . /app
14