patrickbdevaney commited on
Commit
3a0352b
1 Parent(s): bbe15c5

dockerfile installs

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -11,23 +11,21 @@ WORKDIR /usr/src/swarms
11
  # Copy the requirements file and pyproject.toml to the container
12
  COPY pyproject.toml requirements.txt ./
13
 
14
- # Install Python dependencies from requirements.txt
15
  RUN pip install --upgrade pip
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Check if uvicorn is already in the requirements.txt, if not install it
19
- # This ensures uvicorn is installed without duplicates
20
- RUN pip show uvicorn || pip install uvicorn
21
 
22
- # Copy the rest of the application files from the root (not inside swarms/)
23
  COPY . .
24
 
25
- # Verify installations (helpful for debugging)
26
  RUN python --version
27
- RUN pip show uvicorn
28
- RUN which uvicorn
29
 
30
- # Expose the port for FastAPI
31
  EXPOSE 8000
32
 
33
  # Command to run the FastAPI app using Uvicorn
 
11
  # Copy the requirements file and pyproject.toml to the container
12
  COPY pyproject.toml requirements.txt ./
13
 
14
+ # Install Python dependencies
15
  RUN pip install --upgrade pip
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Install additional dependencies if they are not included in requirements.txt
19
+ RUN pip install fastapi uvicorn pydantic loguru python-dotenv
 
20
 
21
+ # Copy the rest of the application files from the root
22
  COPY . .
23
 
24
+ # Verify installations
25
  RUN python --version
26
+ RUN pip show fastapi uvicorn pydantic loguru python-dotenv
 
27
 
28
+ # Expose port for FastAPI
29
  EXPOSE 8000
30
 
31
  # Command to run the FastAPI app using Uvicorn