pyclaw-v2 / Dockerfile
rahul7star's picture
Update Dockerfile
2f458cd verified
Raw
History Blame Contribute Delete
1.21 kB
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ENV MODEL_NAME="hf.co/rahul7star/Qwen3-4B-Thinking-2509-Genius-Coder-AI-Full:Q5_K_M"
ENV OLLAMA_HOST=0.0.0.0:11434
# ----------------------------
# System dependencies (FIXED)
# ----------------------------
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
python3 \
python3-pip \
redis-server \
dos2unix \
zstd \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# ----------------------------
# Install Ollama (now works)
# ----------------------------
RUN curl -fsSL https://ollama.com/install.sh | sh
# ----------------------------
WORKDIR /workspace
# ----------------------------
# Python deps
# ----------------------------
COPY requirements.txt .
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
# ----------------------------
# Copy project
# ----------------------------
COPY . .
# ----------------------------
# Fix scripts
# ----------------------------
RUN dos2unix /workspace/entrypoint.sh || true
RUN chmod +x /workspace/entrypoint.sh || true
# ----------------------------
EXPOSE 7860
CMD ["bash", "/workspace/entrypoint.sh"]