diff --git a/Dockerfile b/Dockerfile index 54a6863..1025514 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,13 @@ FROM python:3.13-slim WORKDIR /app -# Install system dependencies and uv +# Install system dependencies, Node.js, Yarn, and uv RUN apt-get update && apt-get install -y \ build-essential \ curl \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y nodejs \ + && npm install -g yarn \ && rm -rf /var/lib/apt/lists/* \ && curl -LsSf https://astral.sh/uv/install.sh | sh @@ -18,7 +21,13 @@ COPY pyproject.toml ./ # Install Python dependencies using uv RUN uv pip install --system -e . +# Copy frontend code and build +COPY raggr-frontend ./raggr-frontend +WORKDIR /app/raggr-frontend +RUN yarn install && yarn build + # Copy application code +WORKDIR /app COPY *.py ./ # Create ChromaDB directory