Skip to content

Commit

Permalink
fix: Avoid installing dev dependencies in Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey committed Feb 19, 2025
1 parent b1ecc36 commit cfa9b90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: ["uv", "run", "dagster", "instance", "migrate"]
command: ["uv", "run", "--no-dev", "dagster", "instance", "migrate"]
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN}
DAGSTER_CURRENT_IMAGE: "dagster-daemon"
Expand Down Expand Up @@ -42,7 +42,7 @@ services:
context: .
dockerfile: Dockerfile
restart: unless-stopped
entrypoint: ["uv", "run", "dagster-webserver", "-w", "/opt/dagster/dagster_home/workspace.yaml",
entrypoint: ["uv", "run", "--no-dev", "dagster-webserver", "-w", "/opt/dagster/dagster_home/workspace.yaml",
"-h", "0.0.0.0", "-p", "3000"]
ports:
- "3000:3000"
Expand Down Expand Up @@ -77,7 +77,7 @@ services:
dockerfile: Dockerfile
restart: on-failure
# restart: unless-stopped
entrypoint: ["uv", "run", "dagster-daemon", "run", "-w", "/opt/dagster/dagster_home/workspace.yaml"]
entrypoint: ["uv", "run", "--no-dev", "dagster-daemon", "run", "-w", "/opt/dagster/dagster_home/workspace.yaml"]
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN}
DAGSTER_CURRENT_IMAGE: "ol-dagster"
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/orchestrate/Dockerfile.global
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ WORKDIR /opt/dagster/code
RUN uv sync --locked --no-dev

RUN cd /opt/dbt && \
uv run --directory /opt/dagster/code dbt deps --project-dir /opt/dbt && \
uv run --directory /opt/dagster/code dbt ls --project-dir /opt/dbt --profiles-dir /opt/dbt --target dev
uv run --no-dev --directory /opt/dagster/code dbt deps --project-dir /opt/dbt && \
uv run --no-dev --directory /opt/dagster/code dbt ls --project-dir /opt/dbt --profiles-dir /opt/dbt --target dev

# ENTRYPOINTS
# Dagster Daemon
Expand Down

0 comments on commit cfa9b90

Please sign in to comment.