SanadLLM / Dockerfile
Hydra-Bolt
fixed
cc887ab
raw
history blame contribute delete
777 Bytes
FROM python:3.13.3
# Install system deps first
RUN apt-get update && apt-get install -y \
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 \
libxrandr2 libgbm1 libasound2 libpangocairo-1.0-0 \
libpango-1.0-0 libcairo2 libatspi2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Create non-root user
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Install Python deps
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Install Playwright Chromium as *this* user
RUN playwright install chromium
# Copy app code
COPY --chown=user . /app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]