From 26cc01b58b10b9b1f8ba82b713d03d07944858e4 Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Thu, 2 Oct 2025 20:42:01 -0400 Subject: [PATCH] Add frontend build step to Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install Node.js and Yarn, then build the raggr-frontend during Docker image build process. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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