Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
|
@@ -3,20 +3,20 @@ FROM python:3.10-slim
|
|
| 3 |
ENV PYTHONDONTWRITEBYTECODE=1 \
|
| 4 |
PYTHONUNBUFFERED=1 \
|
| 5 |
FILES_DIR=/tmp/brain_app/files \
|
| 6 |
-
TTS_WS_TARGET=wss://
|
| 7 |
-
TTS_HTTP_TARGET=https://
|
| 8 |
-
STT_WS_TARGET=wss://
|
|
|
|
| 9 |
|
| 10 |
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
|
| 11 |
-
rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
RUN mkdir -p ${FILES_DIR}
|
| 14 |
|
| 15 |
WORKDIR /code
|
| 16 |
-
COPY requirements.txt
|
| 17 |
-
RUN pip install --no-cache-dir -r
|
| 18 |
|
| 19 |
-
COPY app.py
|
|
|
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 3 |
ENV PYTHONDONTWRITEBYTECODE=1 \
|
| 4 |
PYTHONUNBUFFERED=1 \
|
| 5 |
FILES_DIR=/tmp/brain_app/files \
|
| 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 |
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
|
| 12 |
+
rm -rf /var/lib/apt/lists/* && mkdir -p ${FILES_DIR}
|
|
|
|
|
|
|
| 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"]
|