From ec00390de0b4bb79f9c2692395b152974fc1bb61 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Tue, 29 Jul 2025 11:25:23 +0200 Subject: [PATCH] Dockerfile for playwright --- Dockerfile.code.playwright | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile.code.playwright diff --git a/Dockerfile.code.playwright b/Dockerfile.code.playwright new file mode 100644 index 0000000..37d97e5 --- /dev/null +++ b/Dockerfile.code.playwright @@ -0,0 +1,29 @@ +FROM mcr.microsoft.com/playwright:v1.54.0-noble + +ENV PATH="/venv/bin:/root/.local/bin:$PATH" + +RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ + uv python install 3.12 && \ + uv venv /venv + +COPY requirements.txt . + +RUN . /venv/bin/activate && \ + uv pip install -r requirements.txt && \ + uv pip install polars-lts-cpu + +RUN . /venv/bin/activate && \ + uv pip install playwright && \ + playwright install + +ARG APP +ENV APP=$APP +ENV PYTHONPATH=/apps/$APP/src/:/shared/src/ +WORKDIR /opt/dagster/home + +# Run dagster gRPC server on port 4000 +EXPOSE 4000 + +# CMD allows this to be overridden from run launchers or executors that want +# to run other commands against your repository +CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4000", "-m", "definitions"]