Neon-AI commited on
Commit
587c960
·
verified ·
1 Parent(s): 85d93b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -18
Dockerfile CHANGED
@@ -1,26 +1,22 @@
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"]
 
 
1
+ # Use slim Python 3.11
2
+ FROM python:3.11-slim
3
 
4
+ # System dependencies
5
+ RUN apt-get update && \
6
+ apt-get install -y git build-essential wget && \
7
+ apt-get clean && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set working directory
10
  WORKDIR /app
11
 
12
+ # Copy your app
13
+ COPY . /app
 
 
 
 
 
14
 
15
+ # Install Python dependencies
 
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Expose Streamlit port
 
 
 
 
 
 
19
  EXPOSE 7860
20
 
21
+ # Run Streamlit
22
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]