Spaces:
Paused
Paused
fix user
Browse files23 unmodified lines24252627282930313233343548 unmodified lines848586878823 unmodified lines# -g appuser: Set the primary group for the userRUN useradd --system -m -s /bin/bash -g appuser appuser# Switch to the new userUSER appuser# Set environment variables for the user (optional)ENV HOME=/home/appuser# Install nvm (Node Version Manager) and then use it to install Node.js and npm# This ensures a clean and controlled Node.js/npm environment48 unmodified linesHEALTHCHECK --interval=30s --timeout=10s --start-period=5s \CMD curl -f http://localhost:7860/ || exit 1# Start with syncENTRYPOINT ["/start.sh"]23 unmodified lines24252627282948 unmodified lines7879808182838485868723 unmodified lines# -g appuser: Set the primary group for the userRUN useradd --system -m -s /bin/bash -g appuser appuser# Install nvm (Node Version Manager) and then use it to install Node.js and npm# This ensures a clean and controlled Node.js/npm environment48 unmodified linesHEALTHCHECK --interval=30s --timeout=10s --start-period=5s \CMD curl -f http://localhost:7860/ || exit 1# Switch to the new userUSER appuser# Set environment variables for the user (optional)ENV HOME=/home/appuser# Start with syncENTRYPOINT ["/start.sh"]
Dockerfile+5-6