Spaces:
Runtime error
Runtime error
patrickbdevaney
commited on
Commit
•
6e945e4
1
Parent(s):
6ecc3d8
fix dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -8,20 +8,14 @@ ENV PYTHONUNBUFFERED 1
|
|
8 |
# Set the working directory in the container
|
9 |
WORKDIR /usr/src/swarms
|
10 |
|
11 |
-
#
|
12 |
-
|
13 |
-
|
14 |
-
# Copy the requirements file to the container
|
15 |
-
COPY requirements.txt .
|
16 |
|
17 |
# Install Python dependencies
|
18 |
RUN pip install --upgrade pip
|
19 |
RUN pip install --no-cache-dir -r requirements.txt
|
20 |
|
21 |
-
#
|
22 |
-
RUN pip install -e .
|
23 |
-
|
24 |
-
# Copy the rest of the application files to the container
|
25 |
COPY . .
|
26 |
|
27 |
# Expose the port for FastAPI
|
|
|
8 |
# Set the working directory in the container
|
9 |
WORKDIR /usr/src/swarms
|
10 |
|
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 |
+
# Copy the rest of the application files from the root (not inside swarms/)
|
|
|
|
|
|
|
19 |
COPY . .
|
20 |
|
21 |
# Expose the port for FastAPI
|