CoolFace
Apppublic

atolat30/pythonic-rag-fastapi-react

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile31 linesDownload Raw Back to root
1 2# Get a distribution that has uv already installed3FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim4 5# Add user - this is the user that will run the app6# If you do not set user, the app will run as root (undesirable)7RUN useradd -m -u 1000 user8USER user9 10# Set the home directory and path11ENV HOME=/home/user \12    PATH=/home/user/.local/bin:$PATH        13 14ENV UVICORN_WS_PROTOCOL=websockets15 16 17# Set the working directory18WORKDIR $HOME/app19 20# Copy the app to the container21COPY --chown=user . $HOME/app22 23# Install the dependencies24# RUN uv sync --frozen25RUN uv sync26 27# Expose the port28EXPOSE 786029 30# Run the app31CMD ["uv", "run", "chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]