Commit
·
0540d86
1
Parent(s):
02554df
Add missing system dependencies for Playwright browsers
Browse files- Add libgbm1 to system dependencies
- Run 'playwright install-deps' to install all required system libraries
- Should resolve 'Host system is missing dependencies' error
- This installs all dependencies needed for Chromium to run in container
- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -29,12 +29,16 @@ RUN apt-get update && apt-get install -y \
|
|
29 |
libxrandr2 \
|
30 |
libxss1 \
|
31 |
libxtst6 \
|
|
|
32 |
&& rm -rf /var/lib/apt/lists/*
|
33 |
|
34 |
# Copy requirements first for better caching
|
35 |
COPY requirements.txt .
|
36 |
RUN pip install --no-cache-dir -r requirements.txt
|
37 |
|
|
|
|
|
|
|
38 |
# Create a non-root user for security
|
39 |
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
|
40 |
|
|
|
29 |
libxrandr2 \
|
30 |
libxss1 \
|
31 |
libxtst6 \
|
32 |
+
libgbm1 \
|
33 |
&& rm -rf /var/lib/apt/lists/*
|
34 |
|
35 |
# Copy requirements first for better caching
|
36 |
COPY requirements.txt .
|
37 |
RUN pip install --no-cache-dir -r requirements.txt
|
38 |
|
39 |
+
# Install Playwright system dependencies
|
40 |
+
RUN python -m playwright install-deps
|
41 |
+
|
42 |
# Create a non-root user for security
|
43 |
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
|
44 |
|