Percy3822 commited on
Commit
6972631
·
verified ·
1 Parent(s): 687cbd1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -1,22 +1,20 @@
1
  FROM python:3.10-slim
2
 
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"]
 
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"]