AIencoder commited on
Commit
8350d8c
·
verified ·
1 Parent(s): 036ecac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -7,10 +7,6 @@ RUN apt-get update && apt-get install -y \
7
  ffmpeg \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Set cache to persistent storage
11
- ENV HF_HOME=/data/.huggingface
12
- ENV HF_HUB_CACHE=/data/.huggingface/hub
13
-
14
  # Install your wheel + dependencies
15
  RUN pip install --no-cache-dir \
16
  https://github.com/Ary5272/llama-cpp-python/releases/download/v0.1.1/llama_cpp_python-0.3.16-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl \
@@ -18,12 +14,12 @@ RUN pip install --no-cache-dir \
18
  faster-whisper \
19
  huggingface_hub
20
 
 
 
 
21
  # Copy app
22
  COPY app.py /app/app.py
23
- COPY entrypoint.sh /entrypoint.sh
24
- RUN chmod +x /entrypoint.sh
25
 
26
  EXPOSE 7860
27
 
28
- ENTRYPOINT ["/entrypoint.sh"]
29
  CMD ["python", "app.py"]
 
7
  ffmpeg \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
 
 
 
10
  # Install your wheel + dependencies
11
  RUN pip install --no-cache-dir \
12
  https://github.com/Ary5272/llama-cpp-python/releases/download/v0.1.1/llama_cpp_python-0.3.16-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl \
 
14
  faster-whisper \
15
  huggingface_hub
16
 
17
+ # Create models directory
18
+ RUN mkdir -p /models
19
+
20
  # Copy app
21
  COPY app.py /app/app.py
 
 
22
 
23
  EXPOSE 7860
24
 
 
25
  CMD ["python", "app.py"]