-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 889 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 889 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
FROM python:3.12-slim-bookworm
COPY --from=ghcr.io/astral-sh/uv:0.12.7 /uv /usr/local/bin/uv
WORKDIR /app
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONPATH=/app \
DAGSTER_HOME=/opt/dagster \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
PATH="/app/.venv/bin:$PATH"
COPY pyproject.toml uv.lock README.md ./
COPY src ./src
COPY defs ./defs
COPY alembic.ini ./
COPY migrations ./migrations
COPY workspace.yaml dagster.yaml ./
COPY docker/dagster-entrypoint.sh /usr/local/bin/dagster-entrypoint.sh
RUN uv sync --frozen --extra k8s --no-dev \
&& mkdir -p /opt/dagster /inbox \
&& cp dagster.yaml /opt/dagster/dagster.yaml \
&& chmod +x /usr/local/bin/dagster-entrypoint.sh
EXPOSE 3000 8000
ENTRYPOINT ["dagster-entrypoint.sh"]
CMD ["dagster-webserver", "-h", "0.0.0.0", "-p", "3000", "-w", "workspace.yaml"]