File size: 641 Bytes
dc31087
 
 
 
 
 
 
 
0a553ca
9f37b93
0a553ca
 
dc31087
 
0a553ca
 
dc31087
 
0a553ca
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Dockerfile

# Start from a slim Python base image
FROM python:3.12-slim

# Set the working directory inside the container
WORKDIR /blaxel

# Copy the requirements file first to leverage Docker cache
COPY requirements.txt .

# Install the Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy all the project code into the container
# This includes blaxel_main.py, agent_logic.py, mcp_servers.py, etc.
COPY . .

# This is the command that will run when the container starts.
# It executes our FastAPI server, which is configured to
# listen on the BL_SERVER_HOST and BL_SERVER_PORT.
CMD ["python", "blaxel_main.py"]