Spaces:
Running
on
T4
Running
on
T4
File size: 568 Bytes
f3c253c fda59cf f3c253c fda59cf f3c253c 62270ac fda59cf f3c253c 6630641 62270ac f3c253c 4745634 aeec9de f3c253c |
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 |
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"] |