fix(heatmaps): playwright (#40747)

This commit is contained in:
Alex V
2025-10-31 17:41:35 +01:00
committed by GitHub
parent 539b2122ac
commit 3452e625d8

View File

@@ -312,7 +312,9 @@ ENV PATH=/python-runtime/bin:$PATH \
# Install Playwright Chromium browser for video export (as root for system deps)
USER root
RUN /python-runtime/bin/python -m playwright install --with-deps chromium
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN /python-runtime/bin/python -m playwright install --with-deps chromium && \
chown -R posthog:posthog /ms-playwright
USER posthog
# Validate video export dependencies
@@ -345,7 +347,8 @@ ENV NODE_ENV=production \
CHROME_BIN=/usr/bin/chromium \
CHROME_PATH=/usr/lib/chromium/ \
CHROMEDRIVER_BIN=/usr/bin/chromedriver \
BUILD_LIBRDKAFKA=0
BUILD_LIBRDKAFKA=0 \
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
# Expose container port and run entry point script.
EXPOSE 8000