kostissz commited on
Commit
37da40f
·
verified ·
1 Parent(s): d2d49bf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile for speaches.ai ASR Server
2
+ # Base image directly using the pre-built speaches image
3
+ FROM ghcr.io/speaches-ai/speaches:latest-cpu
4
+ USER ubuntu
5
+ ENV HOME=/home/ubuntu \
6
+ PATH=/home/ubuntu/.local/bin:$PATH
7
+
8
+ # Ensure the HuggingFace cache directory exists and has proper permissions
9
+ RUN mkdir -p $HOME/.cache/huggingface/hub
10
+
11
+ # Create a volume for the HuggingFace cache
12
+ VOLUME ["$HOME/.cache/huggingface/hub"]
13
+
14
+ # Environment variables
15
+ ENV UVICORN_HOST=0.0.0.0
16
+ ENV UVICORN_PORT=7860
17
+
18
+ # Expose the port that the server listens on
19
+ EXPOSE 7860
20
+
21
+ # Command to run the server
22
+ CMD ["uvicorn", "--factory", "speaches.main:create_app"]