update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user