devve1's picture
Update Dockerfile
f3c253c verified
raw
history blame
No virus
568 Bytes
FROM python:3.10-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN python -m venv venv && \
. /app/venv/bin/activate && \
pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
RUN curl https://ollama.ai/install.sh | sh
ENV OLLAMA_HOST=0.0.0.0
RUN mkdir -p /.ollama && chmod 777 /.ollama
ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"
EXPOSE 7860
EXPOSE 11434
EXPOSE 8501
COPY . .
ENTRYPOINT ["/entrypoint.sh"]