Files
dagster/Dockerfile.code.playwright

30 lines
798 B
Docker

FROM mcr.microsoft.com/playwright:v1.54.0-noble
ARG APP
ENV APP=$APP
ENV PYTHONPATH=/apps/$APP/src/:/shared/src/:$PYTHONPATH
ENV PATH="/venv/bin:/root/.local/bin:$PATH"
WORKDIR /opt/dagster/home
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
# 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"]