Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +7 -9
Dockerfile
CHANGED
|
@@ -1,16 +1,14 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
COPY requirements.txt .
|
| 6 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
-
COPY .
|
| 9 |
|
| 10 |
-
# Set environment
|
| 11 |
-
ENV PYTHONUNBUFFERED=1
|
| 12 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 13 |
-
ENV
|
| 14 |
|
| 15 |
-
|
| 16 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
COPY requirements.txt /app/requirements.txt
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
+
COPY . /app
|
| 9 |
|
| 10 |
+
# Set environment variable for Gradio
|
|
|
|
| 11 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 12 |
+
ENV PYTHONUNBUFFERED=1
|
| 13 |
|
| 14 |
+
CMD ["python", "scripts/entrypoint.sh"]
|
|
|