Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -32
Dockerfile
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
# Use Python 3.11 for the best compatibility with llama-cpp-python wheels
|
| 2 |
-
FROM python:3.11-slim
|
| 3 |
-
|
| 4 |
-
# Install system dependencies (needed for C++ and downloading)
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
-
build-essential \
|
| 7 |
-
curl \
|
| 8 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
-
|
| 10 |
-
# Create a non-root user (Required by Hugging Face)
|
| 11 |
-
RUN useradd -m -u 1000 user
|
| 12 |
-
USER user
|
| 13 |
-
ENV HOME=/home/user \
|
| 14 |
-
PATH=/home/user/.local/bin:$PATH
|
| 15 |
-
WORKDIR $HOME/app
|
| 16 |
-
|
| 17 |
-
# Install llama-cpp-python first using pre-compiled CPU wheels for speed
|
| 18 |
-
RUN pip install --no-cache-dir --upgrade pip && \
|
| 19 |
-
pip install --no-cache-dir llama-cpp-python
|
| 20 |
-
|
| 21 |
-
# Copy and install other requirements
|
| 22 |
-
COPY --chown=user requirements.txt .
|
| 23 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
-
|
| 25 |
-
# Copy the rest of the application
|
| 26 |
-
COPY --chown=user . .
|
| 27 |
-
|
| 28 |
-
# Expose Streamlit's default port
|
| 29 |
-
EXPOSE 7860
|
| 30 |
-
|
| 31 |
-
# Run the app
|
| 32 |
-
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|