PERDYPTO commited on
Update Dockerfile
Browse files- Dockerfile +8 -11
Dockerfile
CHANGED
|
@@ -1,15 +1,12 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
-
|
| 4 |
-
ENV HOME=/home/user
|
| 5 |
-
ENV PATH=/home/user/.local/bin:$PATH
|
| 6 |
-
WORKDIR /home/user/app
|
| 7 |
|
| 8 |
-
|
| 9 |
-
RUN pip install --no-cache-dir
|
| 10 |
|
| 11 |
-
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
|
| 3 |
+
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
# Install huggingface_hub
|
| 6 |
+
RUN pip install --no-cache-dir huggingface_hub
|
| 7 |
|
| 8 |
+
# Copy the script
|
| 9 |
+
COPY app.py .
|
| 10 |
|
| 11 |
+
# Run the script when the container starts
|
| 12 |
+
CMD ["python", "app.py"]
|
|
|