bothari01/secops-env
0
1FROM python:3.10-slim2 3WORKDIR /app4 5RUN apt-get update && apt-get install -y --no-install-recommends \6 curl \7 && rm -rf /var/lib/apt/lists/*8 9RUN pip install --no-cache-dir uv10 11RUN useradd -m -u 1000 user12 13COPY --chown=user:user . /app/14 15RUN pip install --no-cache-dir \16 fastapi>=0.104.0 \17 uvicorn>=0.24.0 \18 pydantic>=2.0.0 \19 httpx>=0.25.0 \20 openai>=1.0.0 \21 openenv>=0.1.022 23RUN pip install --no-cache-dir /app && \24 chown -R user:user /home/user25 26ENV PYTHONUNBUFFERED=127ENV PYTHONPATH=/app28 29EXPOSE 800030 31HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \32 CMD curl -f http://localhost:8000/health || exit 133 34USER user35 36WORKDIR /app37 38CMD ["python", "run_server.py"]39 