ThesisPlease / Dockerfile
NotRev's picture
Update Dockerfile
e2b39f3 verified
raw
history blame contribute delete
630 Bytes
# 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"]