Files
dagster/Dockerfile.code.playwright
2025-08-05 08:36:49 +02:00

30 lines
770 B
Docker

FROM mcr.microsoft.com/playwright:v1.54.0-noble
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
RUN . /venv/bin/activate && \
uv pip install playwright && \
playwright install
ARG APP
ENV APP=$APP
ENV PYTHONPATH=/code/apps/$APP/src/:/code/shared/src/:$PYTHONPATH
# 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"]