Spaces:
Sleeping
Sleeping
File size: 630 Bytes
e2b39f3 45b9d31 a42fc90 e2b39f3 a42fc90 e2b39f3 75db2a8 e2b39f3 75db2a8 db8428c 65c2b98 b61c915 a42fc90 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use a highly compatible Python version (3.10 is stable for ML libs)
FROM python:3.10
WORKDIR /app
# Install necessary system packages
# No special sentencepiece/cmake tools needed here anymore
RUN apt-get update && apt-get install -y \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy and install ALL dependencies
COPY requirements.txt ./
# We use --no-cache-dir to prevent disk space issues
RUN pip install --no-cache-dir -r requirements.txt
# Copy application source code
COPY src/ ./src/
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] |