Skip to content

Commit 1230fd7

Browse files
JacobCoffeeclaude
andcommitted
fix: bot Dockerfile to handle uv workspace correctly
Create stub services/api to satisfy workspace definition and use --package flags to only install bot and byte-common packages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent f254cde commit 1230fd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/bot/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@ COPY pyproject.toml uv.lock ./
3030
COPY packages/byte-common ./packages/byte-common
3131
COPY services/bot ./services/bot
3232

33+
# Create stub for services/api to satisfy workspace definition
34+
RUN mkdir -p services/api/src && \
35+
echo '[project]\nname = "byte-api"\nversion = "0.1.0"' > services/api/pyproject.toml
36+
3337
# Install dependencies with frozen lockfile (no dev dependencies)
3438
# This creates a .venv directory with all dependencies
35-
RUN uv sync --frozen --no-dev --no-editable
39+
RUN uv sync --frozen --no-dev --no-editable --package byte-bot --package byte-common
3640

3741
# ============================================================================
3842
# Runtime Stage: Minimal production image

0 commit comments

Comments
 (0)