update
Browse files17 unmodified lines181920212223242526272829303125 unmodified lines5758595253545556575860616217 unmodified lines# Stage 2: Production imageFROM python:3.11-slim
# Install system dependencies as root (git for pip, nodejs for frontend)RUN apt-get update && \ apt-get install -y --no-install-recommends \ git \ nodejs \ npm \ && rm -rf /var/lib/apt/lists/*
# Set up a new user named "user" with user ID 1000RUN useradd -m -u 1000 user
25 unmodified linesCOPY --chown=user:user --from=frontend-builder /build/next.config.js ./frontend/COPY --chown=user:user --from=frontend-builder /build/node_modules ./frontend/node_modules
# Install Node.js for running frontendUSER rootRUN apt-get update && \ apt-get install -y --no-install-recommends nodejs npm && \ rm -rf /var/lib/apt/lists/*USER user
# Set environment variables for the applicationENV BACKEND_HOST=http://localhost:8000 \ PORT=7860Dockerfile+8-7