Spaces:
Build error
Build error
Create the Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11.8
|
| 2 |
+
|
| 3 |
+
# Copy the current directory contents into the container at .
|
| 4 |
+
COPY . .
|
| 5 |
+
|
| 6 |
+
# Set the working directory to /
|
| 7 |
+
WORKDIR /
|
| 8 |
+
|
| 9 |
+
# Install requirements.txt
|
| 10 |
+
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
| 11 |
+
|
| 12 |
+
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
| 13 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|