feat: add rag ci/cd

This commit is contained in:
djeon 2025-10-29 23:46:19 +09:00
parent 5b744170e5
commit 7fd4cccd80

View File

@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies # Copy requirements and install dependencies
COPY rag/requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt RUN pip install --no-cache-dir --user -r requirements.txt
# Run stage # Run stage
@ -39,7 +39,7 @@ WORKDIR ${ARTIFACTORY_HOME}
COPY --from=builder /root/.local /home/${USERNAME}/.local COPY --from=builder /root/.local /home/${USERNAME}/.local
# Copy application code # Copy application code
COPY --chown=${USERNAME}:${USERNAME} rag/ . COPY --chown=${USERNAME}:${USERNAME} . .
# Update PATH to include user's local bin # Update PATH to include user's local bin
ENV PATH=/home/${USERNAME}/.local/bin:$PATH ENV PATH=/home/${USERNAME}/.local/bin:$PATH