update
Some checks failed
Backend EC - Modal Deployment / notify-deploy (push) Has been cancelled
Backend EC - Modal Deployment / build-and-push (push) Has been cancelled

This commit is contained in:
DatTT127
2026-07-19 09:11:46 +07:00
parent 2022990fc7
commit c2e09c9361

View File

@@ -95,12 +95,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Step 3: Use the exact matching numeric IDs for --chown
COPY --from=builder --chown=999:999 /opt/venv /opt/venv
COPY --from=builder --chown=999:999 /app/backend /app/backend
ENV PATH=/opt/venv/bin:$PATH
# Copy application code
COPY --chown=999:999 backend ./backend
COPY --from=builder --chown=999:999 /app/backend /app/backend
# Switch to non-root user
USER appuser