Update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
|
@@ -1,22 +1,20 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
ENV
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
TTS_WS_TARGET=wss://<YOUR_TTS_SPACE>.hf.space/ws/tts \
|
| 7 |
-
TTS_HTTP_TARGET=https://<YOUR_TTS_SPACE>.hf.space/speak \
|
| 8 |
-
STT_WS_TARGET=wss://<YOUR_STT_SPACE>.hf.space/ws/stt \
|
| 9 |
-
AGENT_WS_TARGET=wss://<YOUR_AGENT_SPACE>.hf.space/ws/agent
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
|
| 14 |
WORKDIR /code
|
|
|
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
COPY app.py .
|
| 19 |
-
COPY README.md .
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 4 |
+
PYTHONDONTWRITEBYTECODE=1 \
|
| 5 |
+
PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
# minimal runtime packages
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
ca-certificates curl && \
|
| 10 |
+
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
WORKDIR /code
|
| 13 |
+
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
COPY app.py .
|
|
|
|
| 18 |
|
| 19 |
EXPOSE 7860
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|