Spaces:
Running
Running
space: Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
RUN pip install --no-cache-dir fastapi==0.115.6 uvicorn==0.34.0 huggingface_hub==0.27.1
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
COPY app.py index.html /app/
|
| 5 |
+
ENV PYTHONUNBUFFERED=1
|
| 6 |
+
EXPOSE 7860
|
| 7 |
+
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]
|