Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -18
Dockerfile
CHANGED
|
@@ -1,26 +1,22 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
|
| 7 |
-
build-essential \
|
| 8 |
-
cmake \
|
| 9 |
-
git \
|
| 10 |
-
wget \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
-
# Install Python
|
| 14 |
-
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
-
#
|
| 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 |
-
|
|
|
|
|
|
| 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"]
|