Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -3,12 +3,13 @@ FROM python:3.12-slim
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg fonts-dejavu-core && rm -rf /var/lib/apt/lists/*
|
| 6 |
-
RUN pip install --no-cache-dir "beautifulsoup4>=4.12" lxml
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
COPY . .
|
| 9 |
EXPOSE 7860
|
| 10 |
|
| 11 |
-
|
| 12 |
-
RUN python -c "from app_v2_entry import app; print('app_v2_entry OK')"
|
| 13 |
-
|
| 14 |
-
CMD ["uvicorn", "app_v2_entry:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg fonts-dejavu-core && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
RUN pip install --no-cache-dir "beautifulsoup4>=4.12" lxml
|
| 7 |
+
RUN pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 jinja2 yt-dlp huggingface_hub gTTS pillow edge-tts python-dateutil httpx
|
| 8 |
+
|
| 9 |
+
COPY requirements.txt .
|
| 10 |
+
RUN pip install --no-cache-dir -r requirements.txt || true
|
| 11 |
|
| 12 |
COPY . .
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
+
CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|
|
|
|
|
|
|
|
|