Spaces:
Sleeping
Sleeping
File size: 607 Bytes
5329ce8 858bf77 53d2b99 858bf77 53d2b99 858bf77 53d2b99 858bf77 53d2b99 858bf77 6f57442 858bf77 6f57442 53d2b99 858bf77 53d2b99 858bf77 5b71d9e 858bf77 53d2b99 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM python:3.13.5-slim-bookworm
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PATH="/home/appuser/.local/bin:$PATH" \
PORT=7860
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends build-essential libssl-dev ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 appuser
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
pip install --no-cache-dir -r requirements.txt
USER appuser
EXPOSE ${PORT}
ENTRYPOINT ["uvicorn"]
CMD ["main:app", "--host", "0.0.0.0", "--port", "7860"]
|