shahid202 commited on
Commit
8d3e588
·
verified ·
1 Parent(s): 3e09981

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,7 +1,8 @@
1
  FROM python:3.10-slim
2
- RUN apt-get update && apt-get install -y espeak-ng libsndfile1 ffmpeg
3
  WORKDIR /app
4
- RUN pip install --no-cache-dir fastapi uvicorn transformers torch accelerate kokoro>=0.9.2 soundfile numpy
 
5
  COPY . .
6
  EXPOSE 7860
7
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
+ RUN apt-get update && apt-get install -y espeak-ng libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/*
3
  WORKDIR /app
4
+ # Installing all dependencies needed for WebSocket and ML processing
5
+ RUN pip install --no-cache-dir fastapi uvicorn[standard] transformers torch accelerate kokoro>=0.9.2 soundfile numpy websockets
6
  COPY . .
7
  EXPOSE 7860
8
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]