-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (20 loc) · 928 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (20 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Dagster libraries to run both dagster-webserver and the dagster-daemon. Does not
# need to have access to any pipeline code.
FROM python:3.10-slim
ENV UV_SYSTEM_PYTHON=1
ENV UV_PROJECT_ENVIRONMENT=/usr/local/
# install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Set $DAGSTER_HOME and copy dagster instance and workspace YAML there
ENV DAGSTER_HOME=/dagster_home
WORKDIR $DAGSTER_HOME
COPY examples/docker/run_launcher/pyproject.toml examples/docker/run_launcher/uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-editable --frozen
COPY pyproject.toml README.md /dagster-ray/
COPY dagster_ray /dagster-ray/dagster_ray
RUN uv pip install /dagster-ray
COPY examples/docker/run_launcher/example ./example
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --inexact
COPY examples/docker/run_launcher/dagster.yaml examples/docker/run_launcher/workspace.yaml ./