Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +19 -19
Dockerfile
CHANGED
|
@@ -1,19 +1,19 @@
|
|
| 1 |
-
FROM python:3.9-slim
|
| 2 |
-
|
| 3 |
-
# Set the working directory to /app
|
| 4 |
-
WORKDIR /app
|
| 5 |
-
|
| 6 |
-
# Copy the requirements file
|
| 7 |
-
COPY requirements.txt .
|
| 8 |
-
|
| 9 |
-
# Install the dependencies
|
| 10 |
-
RUN pip install -r requirements.txt
|
| 11 |
-
|
| 12 |
-
# Copy the application code
|
| 13 |
-
COPY . .
|
| 14 |
-
|
| 15 |
-
# Expose the port
|
| 16 |
-
EXPOSE 8000
|
| 17 |
-
|
| 18 |
-
# Run the command to start the development server
|
| 19 |
-
CMD ["uvicorn", "
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
# Set the working directory to /app
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Copy the requirements file
|
| 7 |
+
COPY requirements.txt .
|
| 8 |
+
|
| 9 |
+
# Install the dependencies
|
| 10 |
+
RUN pip install -r requirements.txt
|
| 11 |
+
|
| 12 |
+
# Copy the application code
|
| 13 |
+
COPY . .
|
| 14 |
+
|
| 15 |
+
# Expose the port
|
| 16 |
+
EXPOSE 8000
|
| 17 |
+
|
| 18 |
+
# Run the command to start the development server
|
| 19 |
+
CMD ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "8000"]
|