microhugs / Dockerfile
acecalisto3's picture
Create Dockerfile
c51053c verified
raw
history blame contribute delete
515 Bytes
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y curl build-essential
# Install Ollama
RUN curl -L https://ollama.ai/download/ollama-linux-amd64 -o /usr/bin/ollama \
&& chmod +x /usr/bin/ollama
# Set up application environment
WORKDIR /app
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Start Ollama service and Streamlit app
CMD sh -c "ollama serve & streamlit run app.py --server.port $PORT --server.address 0.0.0.0"