aivre / Dockerfile
Vedang Barhate
chore: updated dockerfile and readme
da6d2f6
raw
history blame
464 Bytes
FROM python:3.13-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user && chown user:user /app
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
COPY --chown=user pyproject.toml uv.lock* ./
USER user
RUN uv sync --frozen --no-cache
COPY --chown=user . .
EXPOSE 7860
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]