Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -4,6 +4,8 @@ FROM python:3.10-slim
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
| 7 |
# Copy the requirements file into the container
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
|
@@ -21,4 +23,4 @@ RUN mkdir -p /app/cache/hub
|
|
| 21 |
ENV HF_HOME=/app/cache
|
| 22 |
ENV TRANSFORMERS_CACHE=/app/cache
|
| 23 |
# Command to run the FastAPI app
|
| 24 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
EXPOSE 7860
|
| 8 |
+
|
| 9 |
# Copy the requirements file into the container
|
| 10 |
COPY requirements.txt .
|
| 11 |
|
|
|
|
| 23 |
ENV HF_HOME=/app/cache
|
| 24 |
ENV TRANSFORMERS_CACHE=/app/cache
|
| 25 |
# Command to run the FastAPI app
|
| 26 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|