ChatGPTSpaceRude / Dockerfile
AdityaSharmaTech's picture
Upload 6 files
297e47e verified
raw
history blame contribute delete
397 Bytes
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.12-slim-bookworm
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user . .
RUN ls
RUN pip3 install uvicorn
CMD ["uv", "run", "main.py"]