James Frecheville
commited on
Commit
·
00f2861
1
Parent(s):
d4bd95e
Fix Playwright browser installation permissions
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -54,9 +54,11 @@ COPY requirements.txt .
|
|
54 |
RUN pip install --no-cache-dir -r requirements.txt
|
55 |
|
56 |
# Install Playwright browsers and dependencies as root
|
57 |
-
RUN
|
|
|
|
|
58 |
playwright install-deps && \
|
59 |
-
chown -R user:user /
|
60 |
|
61 |
# Copy the rest of the application
|
62 |
COPY . .
|
|
|
54 |
RUN pip install --no-cache-dir -r requirements.txt
|
55 |
|
56 |
# Install Playwright browsers and dependencies as root
|
57 |
+
RUN mkdir -p /home/user/.cache/ms-playwright && \
|
58 |
+
chown -R user:user /home/user/.cache/ms-playwright && \
|
59 |
+
playwright install chromium && \
|
60 |
playwright install-deps && \
|
61 |
+
chown -R user:user /home/user/.cache/ms-playwright
|
62 |
|
63 |
# Copy the rest of the application
|
64 |
COPY . .
|