Skip to content

Commit 78fa7bf

Browse files
committed
Refactor Dockerfiles and update paths
- Move database files to dedicated directory - Separate ensemble startup script - Pin Python version in ensemble Dockerfile - Reorganize file copying steps - Update working directory paths - Clean up unused dependencies This reorganization improves build consistency and separates concerns between database and ensemble deployments.
1 parent 4647da9 commit 78fa7bf

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/database/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ WORKDIR /ml_consumer
44

55
COPY --from=ghcr.io/astral-sh/uv:0.4.3 /uv /bin/uv
66

7-
COPY ./*.toml ./
7+
COPY ./database/*.toml ./
88

99
RUN uv sync --compile-bytecode --no-cache
1010

11-
COPY ./*.py .
11+
COPY ./database/*.py ./ml_consumer/
1212

13-
COPY ./*.yaml .
13+
COPY ./database/*.yaml ./ml_consumer/
1414

15-
WORKDIR /ml_consumer
15+
COPY ./util/ ./util
16+
17+
WORKDIR /ml_consumer/ml_consumer
1618

1719
ENV PATH="/ml_consumer/.venv/bin:$PATH"
1820

src/ensemble/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.7.21 /uv /uvx /bin/
77

88
COPY ./ensemble/*.toml ./
99

10-
1110
COPY ./ensemble/run_server.sh ./ensemble/run_server.sh
1211

1312
RUN uv python pin 3.10.18

0 commit comments

Comments
 (0)