rasulbrur commited on
Commit
6843abb
·
1 Parent(s): eb9dded

changed transformer version

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -6,9 +6,14 @@ RUN apt-get update && \
6
  apt-get install -y wget ffmpeg unzip curl gcc && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
- # Set working directory
10
- WORKDIR /app
11
- # portaudio19-dev
 
 
 
 
 
12
 
13
  # Copy your code into the container
14
  COPY . .
@@ -39,6 +44,4 @@ RUN wget https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip &&
39
  EXPOSE 7860
40
 
41
  # Start the API
42
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
43
-
44
- # CMD uvicorn app:app --host 0.0.0.0 --port $PORT
 
6
  apt-get install -y wget ffmpeg unzip curl gcc && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
+ # Set working directory
10
+ WORKDIR /app
11
+
12
+ # Set Hugging Face cache directory
13
+ ENV HF_HOME=/app/cache
14
+
15
+ # Create cache directory and set permissions
16
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
17
 
18
  # Copy your code into the container
19
  COPY . .
 
44
  EXPOSE 7860
45
 
46
  # Start the API
47
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]