FROM docker.io/ollama/ollama:0.1.44@sha256:1174d6119998bb10f5af2437e7aeeb934726e37268f0d66f200f6cfd9fb20578 | |
# 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 | |
# Update package list and install dependencies | |
RUN apt-get update && apt-get install -y python3 python3-pip curl && \ | |
useradd -m -r ollama && \ | |
mkdir -p /app/ollama && \ | |
chown -R ollama:ollama /app/ollama | |
# Copy requirements and install them | |
COPY requirements.txt . | |
RUN pip3 install -r requirements.txt | |
# Copy application code | |
COPY . /app | |
# Set working directory | |
WORKDIR /app | |
# Start the application | |
ENTRYPOINT ["ollama", "serve"] |