Neon-AI commited on
Commit
7f61590
·
verified ·
1 Parent(s): c2591a8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -11
Dockerfile CHANGED
@@ -1,18 +1,26 @@
1
- # Base image
2
- FROM python:3.12-slim
3
 
4
- # Set workdir
5
  WORKDIR /app
6
 
7
- # Copy files
8
- COPY requirements.txt .
9
- COPY app.py .
 
 
 
 
10
 
11
- # Install dependencies
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Expose Streamlit port
15
- EXPOSE 8501
 
 
 
 
 
 
16
 
17
- # Run Streamlit
18
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.10-slim
 
2
 
 
3
  WORKDIR /app
4
 
5
+ # System deps for llama.cpp
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ cmake \
9
+ git \
10
+ wget \
11
+ && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Install Python deps
14
+ COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Download GGUF at build time
18
+ RUN wget -O model.gguf \
19
+ https://huggingface.co/Neon-AI/Kushina/resolve/main/model.gguf
20
+
21
+ # Copy app
22
+ COPY app.py .
23
+
24
+ EXPOSE 7860
25
 
26
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]