ai-interviewer-api / Dockerfile
elrais12's picture
Rename Dockerfile.txt to Dockerfile
3c58738 verified
raw
history blame contribute delete
493 Bytes
FROM python:3.9-slim
ENV PYTHONUNBUFFERED=1 \
OLLAMA_HOST=0.0.0.0:11434
RUN apt-get update && apt-get install -y \
curl \
procps \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://ollama.com/install.sh | sh
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir -p /.ollama && chmod 777 /.ollama
ENV OLLAMA_MODELS=/.ollama/models
COPY . .
EXPOSE 7860
CMD ollama serve & \
uvicorn main:app --host 0.0.0.0 --port 7860