CoolFace
Apppublic

vivnatan/open-source-rag

sourceHugging Faceopenrailupdated 1y agoView on Hugging Face
0likes
Dockerfile32 linesDownload Raw Back to root
1# Get a distribution that has uv already installed2FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim3 4# Add user - this is the user that will run the app5# If you do not set user, the app will run as root (undesirable)6RUN useradd -m -u 1000 user7USER user8 9# Set the home directory and path10ENV HOME=/home/user \11    PATH=/home/user/.local/bin:$PATH        12 13ENV UVICORN_WS_PROTOCOL=websockets14 15# Set the working directory16WORKDIR $HOME/app17 18COPY --chown=user ./requirements.txt requirements.txt19RUN pip install --no-cache-dir --upgrade -r requirements.txt20 21# Copy the app to the container22COPY --chown=user . $HOME/app23 24# Install the dependencies25# RUN uv sync --frozen26RUN uv sync27 28# Expose the port29EXPOSE 786030 31# Run the app32CMD ["uv", "run", "chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]