Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -4,14 +4,17 @@ FROM python:3.9-slim
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /code
|
6 |
|
7 |
-
# Copy the requirements.txt file into the container at /
|
8 |
-
COPY requirements.txt .
|
9 |
|
10 |
# Install any dependencies specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
# Copy the current directory contents into the container at /
|
14 |
COPY . .
|
15 |
|
|
|
|
|
|
|
16 |
# Command to run the FastAPI app using Uvicorn with live-reload
|
17 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /code
|
6 |
|
7 |
+
# Copy the requirements.txt file into the container at /code
|
8 |
+
COPY requirements.txt /code/requirements.txt
|
9 |
|
10 |
# Install any dependencies specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Copy the current directory contents into the container at /code
|
14 |
COPY . .
|
15 |
|
16 |
+
# Copy the numberPlate_model_2 folder to /code/numberPlate_model_2
|
17 |
+
COPY numberPlate_model_2 /code/numberPlate_model_2
|
18 |
+
|
19 |
# Command to run the FastAPI app using Uvicorn with live-reload
|
20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|