beploo-audit-api / Dockerfile
Gokul
Migrate to Groq Llama 3 70B
029ab19
Raw History Blame Contribute Delete
449 Bytes
# 1. Use extremely lightweight Python
FROM python:3.9-slim
# 2. Set working directory
WORKDIR /app
# 3. Create user
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# 4. Copy requirements & Install
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 5. Copy App Code
COPY --chown=user . .
# 6. Start Server
CMD ["uvicorn", "api.index:app", "--host", "0.0.0.0", "--port", "7860"]