nextchat / Dockerfile
Syed Khizar
Updated Dockerfile
9ba1abd unverified
raw
history blame contribute delete
676 Bytes
FROM python:3.11
WORKDIR /
# Install system dependencies and Python tools
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
ca-certificates \
libasound2 \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip and setuptools first
RUN pip install --upgrade pip setuptools wheel
COPY requirements.txt .
# Install Python packages with explicit source install for problematic packages
RUN pip install --no-cache-dir -r requirements.txt \
--no-binary=langdetect,antlr4-python3-runtime
# Set permissions
RUN mkdir -p /.cache /tmp && chmod 777 -R /.cache /tmp
COPY . /
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]