jisaacso219 commited on
Commit
ab9a2d3
·
verified ·
1 Parent(s): 72200dd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -10
Dockerfile CHANGED
@@ -1,22 +1,25 @@
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"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ git \
7
+ curl \
8
+ && apt-get clean \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Set work directory
12
  WORKDIR /app
13
 
14
+ # Copy files
15
  COPY . /app
16
 
17
+ # Install Python dependencies
18
+ RUN pip install --upgrade pip \
19
+ && pip install -r requirements.txt
 
 
 
20
 
21
+ # Expose the port for Flask
22
  EXPOSE 7860
23
 
24
+ # Run the app
25
  CMD ["python", "app.py"]