Skip to content

Commit 21d44ca

Browse files
fix(infra): Add Playwright Directory (onyx-dot-app#5313)
1 parent a537bce commit 21d44ca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

backend/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ARG ONYX_VERSION=0.0.0-dev
1212
# DO_NOT_TRACK is used to disable telemetry for Unstructured
1313
ENV ONYX_VERSION=${ONYX_VERSION} \
1414
DANSWER_RUNNING_IN_DOCKER="true" \
15-
DO_NOT_TRACK="true"
15+
DO_NOT_TRACK="true" \
16+
PLAYWRIGHT_BROWSERS_PATH="/app/.cache/ms-playwright"
1617

1718

1819
RUN echo "ONYX_VERSION: ${ONYX_VERSION}"

backend/tests/integration/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FROM python:3.11.7-slim-bookworm
33
# Currently needs all dependencies, since the ITs use some of the Onyx
44
# backend code.
55

6+
# Needed for playwright to work
7+
ENV PLAYWRIGHT_BROWSERS_PATH="/app/.cache/ms-playwright"
8+
69
# Install system dependencies
710
# cmake needed for psycopg (postgres)
811
# libpq-dev needed for psycopg (postgres)

0 commit comments

Comments
 (0)