Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -16,7 +16,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 16 |
RUN mkdir -p /app/cache
|
| 17 |
|
| 18 |
# Copy application code
|
| 19 |
-
COPY
|
| 20 |
|
| 21 |
# Set environment variables for cache
|
| 22 |
ENV HF_HOME=/app/cache
|
|
@@ -26,4 +26,4 @@ ENV NUMBA_CACHE_DIR=/app/cache
|
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
# Run FastAPI with Uvicorn
|
| 29 |
-
CMD ["uvicorn", "
|
|
|
|
| 16 |
RUN mkdir -p /app/cache
|
| 17 |
|
| 18 |
# Copy application code
|
| 19 |
+
COPY app.py .
|
| 20 |
|
| 21 |
# Set environment variables for cache
|
| 22 |
ENV HF_HOME=/app/cache
|
|
|
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
# Run FastAPI with Uvicorn
|
| 29 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|