Dockerfile for playwright

This commit is contained in:
2025-07-29 11:25:23 +02:00
parent b386a375b5
commit ec00390de0

View File

@@ -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"]