youssefleb commited on
Commit
0a553ca
·
verified ·
1 Parent(s): c5014bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -17
Dockerfile CHANGED
@@ -6,25 +6,17 @@ FROM python:3.12-slim
6
  # Set the working directory inside the container
7
  WORKDIR /blaxel
8
 
9
- # 1. Install system dependencies (curl is needed to download the CLI)
10
- RUN apt-get update && apt-get install -y curl git
11
-
12
- # 2. Install Blaxel CLI
13
- # (NOTE: Use the official install command from Blaxel documentation.
14
- # Usually it is curl | sh. Assuming standard path here:)
15
- RUN curl -fsSL https://raw.githubusercontent.com/blaxel/cli/main/install.sh | sh
16
- # Add bl to path if necessary (the install script usually handles this, but just in case)
17
- ENV PATH="/root/.blaxel/bin:${PATH}"
18
-
19
- # Copy requirements and install python deps
20
  COPY requirements.txt .
 
 
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
- # Copy all project code
 
24
  COPY . .
25
 
26
- # 3. Permissions: Make the deploy script executable
27
- RUN chmod +x deploy.sh
28
-
29
- # Run the app
30
- CMD ["python", "app.py"]
 
6
  # Set the working directory inside the container
7
  WORKDIR /blaxel
8
 
9
+ # Copy the requirements file first to leverage Docker cache
 
 
 
 
 
 
 
 
 
 
10
  COPY requirements.txt .
11
+
12
+ # Install the Python dependencies
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Copy all the project code into the container
16
+ # This includes blaxel_main.py, agent_logic.py, mcp_servers.py, etc.
17
  COPY . .
18
 
19
+ # This is the command that will run when the container starts.
20
+ # It executes our FastAPI server, which is configured to
21
+ # listen on the BL_SERVER_HOST and BL_SERVER_PORT.
22
+ CMD ["python", "blaxel_main.py"]