Skip to content

Commit ff09afc

Browse files
committed
Fix playwright install
Signed-off-by: Shawn Hsu <ambersun1019.shawn@gmail.com>
1 parent 1bfacf0 commit ff09afc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ FROM python:3.11-slim
22

33
WORKDIR /app
44

5+
# Set Playwright browser path to a consistent location
6+
ENV PLAYWRIGHT_BROWSERS_PATH=/app/.playwright
7+
58
RUN apt-get update && apt-get install -y \
69
libglib2.0-0 \
710
libnss3 \
@@ -27,7 +30,7 @@ RUN apt-get update && apt-get install -y \
2730
COPY . .
2831

2932
RUN pip install uv && uv sync
30-
RUN uv run playwright install
33+
RUN uv run python -m playwright install chromium
3134

3235
RUN chmod +x /app/entrypoint.sh
3336

0 commit comments

Comments
 (0)