mann / Dockerfile
gcharanteja
rr
f30db5f
Raw
History Blame Contribute Delete
582 Bytes
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"]