@@ -15,6 +15,7 @@ WORKDIR /app
1515# Copy the entire workspace structure needed for uv
1616COPY packages/ol-orchestrate-lib packages/ol-orchestrate-lib
1717COPY dg_projects/edxorg dg_projects/edxorg
18+ COPY src/ol_dbt src/ol_dbt
1819
1920# Install dependencies from the edxorg project
2021WORKDIR /app/dg_projects/edxorg
@@ -26,6 +27,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2627RUN --mount=type=cache,target=/root/.cache/uv \
2728 uv sync --frozen --no-dev --no-editable
2829
30+ # Compile dbt to generate manifest.json (CRITICAL for @dbt_assets)
31+ WORKDIR /app/src/ol_dbt
32+ RUN /app/dg_projects/edxorg/.venv/bin/dbt deps && \
33+ /app/dg_projects/edxorg/.venv/bin/dbt compile --target production || \
34+ /app/dg_projects/edxorg/.venv/bin/dbt compile --target dev
35+
2936
3037# Then, use a final image without uv
3138FROM python:3.13-slim-bookworm
@@ -34,6 +41,7 @@ FROM python:3.13-slim-bookworm
3441
3542# Copy the application from the builder
3643COPY --from=builder /app/dg_projects/edxorg /app
44+ COPY --from=builder /app/src/ol_dbt /app/ol_dbt
3745
3846# Place executables in the environment at the front of the path
3947ENV PATH="/app/.venv/bin:$PATH"
0 commit comments