danghungithp's picture
Update Dockerfile
3633e26 verified
raw
history blame
531 Bytes
FROM ollama/ollama:0.1.44
# Cài đặt các công cụ cần thiết: Python, pip, curl
RUN apt-get update && apt-get install -y python3 python3-pip curl
# Sao chép và cài đặt các dependencies của Python
COPY requirements.txt .
RUN pip3 install -r requirements.txt
# Sao chép mã nguồn ứng dụng
COPY . /app
WORKDIR /app
# Create and configure the Ollama directory
RUN mkdir -p /app/ollama && chown -R ollama:ollama /app/ollama
ENV OLLAMA_HOME=/app/ollama
# Start the application
ENTRYPOINT ["ollama", "serve"]