File size: 671 Bytes
3fa63a4 7021745 3fa63a4 5e1004e 7021745 3fa63a4 5e1004e ed02bef 3fa63a4 2a94177 3fa63a4 7021745 ed02bef 3fa63a4 7021745 3fa63a4 7021745 3fa63a4 7021745 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | FROM python:3.13.5-slim
WORKDIR /app
# Install system dependencies AND install Ollama
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
zstd \
&& curl -fsSL https://ollama.com/install.sh | sh \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy all your application files
COPY . .
# Grant execution permissions to your new startup script
RUN chmod +x start.sh
# Expose Streamlit and Ollama ports
EXPOSE 7860
EXPOSE 11434
# Boot up using the script instead of just calling Streamlit directly
ENTRYPOINT ["./start.sh"] |