Leo / Dockerfile
amritn8's picture
Update Dockerfile
3ec4aa5 verified
Raw
History Blame Contribute Delete
487 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install minimal dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Create writable directories
RUN mkdir -p /app/qa_model /app/cache && \
chmod -R 777 /app
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]