Skip to content

Commit a78ea6d

Browse files
committed
More fixes
1 parent f183059 commit a78ea6d

File tree

2 files changed

+588
-0
lines changed

2 files changed

+588
-0
lines changed

dg_projects/edxorg/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ WORKDIR /app
1515
# Copy the entire workspace structure needed for uv
1616
COPY packages/ol-orchestrate-lib packages/ol-orchestrate-lib
1717
COPY dg_projects/edxorg dg_projects/edxorg
18+
COPY src/ol_dbt src/ol_dbt
1819

1920
# Install dependencies from the edxorg project
2021
WORKDIR /app/dg_projects/edxorg
@@ -26,6 +27,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2627
RUN --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
3138
FROM python:3.13-slim-bookworm
@@ -34,6 +41,7 @@ FROM python:3.13-slim-bookworm
3441

3542
# Copy the application from the builder
3643
COPY --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
3947
ENV PATH="/app/.venv/bin:$PATH"

0 commit comments

Comments
 (0)