another_test / Dockerfile
SoufianeDahimi's picture
Upload 3 files
ed30e83 verified
raw
history blame
620 Bytes
FROM python:3.11
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Set working directory
WORKDIR /code
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Create directory for Ollama
RUN mkdir -p /root/.ollama
# Expose port
EXPOSE 7860
# Start Ollama service and then the app
CMD ollama serve & sleep 10 && ollama pull llm_hub/child_trauma_gemma && python app.py