shell2k/test1
0
1FROM python:3.9-slim2 3# Install curl and Ollama4RUN apt-get update && apt-get install -y curl && \5 curl -fsSL https://ollama.ai/install.sh | sh && \6 apt-get clean && rm -rf /var/lib/apt/lists/*7 8# Set up user and environment9RUN useradd -m -u 1000 user10USER user11ENV HOME=/home/user \12 PATH="/home/user/.local/bin:$PATH"13 14WORKDIR $HOME/app15 16COPY --chown=user requirements.txt .17RUN pip install --no-cache-dir --upgrade -r requirements.txt18 19COPY --chown=user . .20 21# Make the start script executable22RUN chmod +x start.sh23 24CMD ["./start.sh"]25 