Spaces:
Runtime error
Runtime error
Update DockerFile
Browse files- DockerFile +3 -3
DockerFile
CHANGED
|
@@ -4,15 +4,15 @@ FROM python:3.9
|
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy necessary files
|
| 8 |
COPY api.py /app
|
| 9 |
COPY requirements.txt /app
|
| 10 |
|
| 11 |
# Install dependencies
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
# Expose
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
-
#
|
| 18 |
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy all necessary files
|
| 8 |
COPY api.py /app
|
| 9 |
COPY requirements.txt /app
|
| 10 |
|
| 11 |
# Install dependencies
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Expose the default Hugging Face port
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
+
# Start FastAPI using Uvicorn
|
| 18 |
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|