Autonomous-AI / Dockerfile
Leonydis137's picture
Update Dockerfile
e8953b1 verified
raw
history blame contribute delete
550 Bytes
FROM python:3.10-slim-bullseye
# System dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
cmake \
libopenblas-dev \
liblapack-dev
# Install CUDA-compatible version of ctransformers
RUN pip install --no-cache-dir ctransformers --no-binary ctransformers
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -U pip && \
pip install --no-cache-dir -r requirements.txt
# Set working directory
WORKDIR /app
COPY . /app
# HF Spaces port
EXPOSE 7860
CMD ["python", "app.py"]