Spaces:
Runtime error
Runtime error
patrickbdevaney
commited on
Commit
•
3a0352b
1
Parent(s):
bbe15c5
dockerfile installs
Browse files- 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
|
15 |
RUN pip install --upgrade pip
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
-
#
|
19 |
-
|
20 |
-
RUN pip show uvicorn || pip install uvicorn
|
21 |
|
22 |
-
# Copy the rest of the application files from the root
|
23 |
COPY . .
|
24 |
|
25 |
-
# Verify installations
|
26 |
RUN python --version
|
27 |
-
RUN pip show uvicorn
|
28 |
-
RUN which uvicorn
|
29 |
|
30 |
-
# Expose
|
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
|