-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 881 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.12-slim
# Install system deps for Node.js and general utils
RUN apt-get update && apt-get install -y \
curl \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Install Poetry globally
RUN curl -sSL https://install.python-poetry.org | python3 -
# Add Poetry to PATH
ENV PATH="/root/.local/bin:${PATH}"
# Install Claude Code CLI globally (for SDK compatibility)
RUN npm install -g @anthropic-ai/claude-code
# Install Gemini CLI globally
RUN npm install -g @google/gemini-cli
# Copy the app code
COPY . /app
# Set working directory
WORKDIR /app
# Install Python dependencies with Poetry
RUN poetry install --no-root
# Expose the port (default 8000)
EXPOSE 8000
# Run the app with Uvicorn (development mode with reload; switch to --no-reload for prod)
CMD ["poetry", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]