jisaacso219 commited on
Commit
e0c5ce4
·
verified ·
1 Parent(s): 0abdb95

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -18
Dockerfile CHANGED
@@ -1,30 +1,22 @@
1
  FROM python:3.10-slim
2
 
3
- # Install required system dependencies
4
  RUN apt-get update && apt-get install -y \
5
- git \
6
- ffmpeg \
7
- libsndfile1 \
8
- && apt-get clean \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- # Set environment vars to avoid librosa/numba issues (precautionary)
12
- ENV NUMBA_CACHE_DIR=/tmp/numba_cache
13
- ENV NUMBA_DISABLE_CACHE=1
14
 
15
  # Set working directory
16
  WORKDIR /app
17
 
18
- # Copy files and install Python deps
19
- COPY requirements.txt .
20
- RUN pip install --upgrade pip && \
21
- pip install --no-cache-dir -r requirements.txt
 
 
22
 
23
- # Copy app files
24
- COPY . .
25
 
26
- # Expose the port Flask will run on
27
  EXPOSE 7860
28
 
29
- # Start the Flask app
30
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # System deps
4
  RUN apt-get update && apt-get install -y \
5
+ ffmpeg libespeak1 libsndfile1 curl git && apt-get clean
 
 
 
 
 
 
 
 
6
 
7
  # Set working directory
8
  WORKDIR /app
9
 
10
+ # Copy app code
11
+ COPY . /app
12
+
13
+ # Install dependencies
14
+ RUN pip install --upgrade pip
15
+ RUN pip install -r requirements.txt
16
 
17
+ # Download model (OPTIONAL: see below)
18
+ RUN mkdir -p /models && curl -L -o /models/mistral.gguf https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q4_K_M.gguf
19
 
 
20
  EXPOSE 7860
21
 
 
22
  CMD ["python", "app.py"]