Reorganize Dockerfile to copy application code before frontend build
Move Python application code copy before frontend build step to improve Dockerfile organization and ensure all app code is available earlier. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -21,14 +21,14 @@ COPY pyproject.toml ./
|
|||||||
# Install Python dependencies using uv
|
# Install Python dependencies using uv
|
||||||
RUN uv pip install --system -e .
|
RUN uv pip install --system -e .
|
||||||
|
|
||||||
|
# Copy application code
|
||||||
|
COPY *.py ./
|
||||||
|
|
||||||
# Copy frontend code and build
|
# Copy frontend code and build
|
||||||
COPY raggr-frontend ./raggr-frontend
|
COPY raggr-frontend ./raggr-frontend
|
||||||
WORKDIR /app/raggr-frontend
|
WORKDIR /app/raggr-frontend
|
||||||
RUN yarn install && yarn build
|
RUN yarn install && yarn build
|
||||||
|
|
||||||
# Copy application code
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY *.py ./
|
|
||||||
|
|
||||||
# Create ChromaDB directory
|
# Create ChromaDB directory
|
||||||
RUN mkdir -p /app/chromadb
|
RUN mkdir -p /app/chromadb
|
||||||
|
|||||||
Reference in New Issue
Block a user