codeflash-internal/deployment/onprem-simple/archive/old-dockerfiles/Dockerfile.aiservice
Saurabh Misra 7c1933180a
local setup (#1898)
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
Co-authored-by: Sarthak Agarwal <sarthak.saga@gmail.com>
Co-authored-by: Mohamed Ashraf <mohamedashrraf222@gmail.com>
Co-authored-by: Aseem Saxena <aseem.bits@gmail.com>
2025-11-17 12:35:09 -08:00

30 lines
616 B
Text

FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install uv
RUN pip install uv
# Copy entire aiservice directory
COPY aiservice ./
# Install dependencies
RUN uv sync
# Set environment variables
ENV ENVIRONMENT=PRODUCTION
ENV PORT=8000
EXPOSE 8000
# Use the start script that references gunicorn.conf.py
CMD ["uv", "run", "gunicorn", "-c", "gunicorn.conf.py", "aiservice.asgi:application", \
"--bind", "0.0.0.0:8000", \
"--timeout", "600", \
"--workers", "2"]