File size: 582 Bytes
d9b4eb6 2c0e3f2 f30db5f 29096a2 d9b4eb6 f30db5f 29096a2 081c3c4 2c0e3f2 f30db5f d9b4eb6 2bfce12 f10850c 2c0e3f2 f30db5f f10850c 9704808 f10850c 2c0e3f2 081c3c4 f10850c f30db5f 2bfce12 f10850c | 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 30 31 | FROM ollama/ollama:latest
# Install Python + required packages (FIXED)
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Create virtual environment
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy all files
COPY . .
# Make start script executable
RUN chmod +x start.sh
EXPOSE 7860
# Override default entrypoint
ENTRYPOINT []
CMD ["./start.sh"] |