Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -10
Dockerfile
CHANGED
|
@@ -1,17 +1,18 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
|
|
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
|
| 16 |
-
# Command to run the
|
| 17 |
-
CMD ["uvicorn", "
|
|
|
|
| 1 |
+
# Dockerfile
|
| 2 |
+
|
| 3 |
+
FROM python:3.9
|
| 4 |
|
| 5 |
# Set the working directory
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
+
# Copy the requirements.txt file
|
| 9 |
+
COPY requirements.txt .
|
| 10 |
|
| 11 |
+
# Install the requirements
|
| 12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Copy the rest of the application code
|
| 15 |
+
COPY . .
|
| 16 |
|
| 17 |
+
# Command to run the application
|
| 18 |
+
CMD ["uvicorn", "your_module_name:app", "--host", "0.0.0.0", "--port", "7860"]
|