Update Dockerfile
Browse files123456789101112135 unmodified lines1920212223FROM eclipse-temurin:17-jre-jammy# Install sudo, curl, and jqUSER rootRUN apt-get update && apt-get install -y curl jq sudo && rm -rf /var/lib/apt/lists/*# Create the Hugging Face userRUN useradd -m -u 1000 minecraft# BYPASS: Give the restricted 'minecraft' user passwordless sudo accessRUN echo "minecraft ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoersUSER minecraft5 unmodified linesCOPY --chown=minecraft start.sh .RUN chmod +x start.sh# Start the serverCMD ["./start.sh"]123456789101112135 unmodified lines1920212223FROM eclipse-temurin:17-jre-jammy# Install dependencies: curl, jq, sudo, nodejs, and tmuxUSER rootRUN apt-get update && apt-get install -y curl jq sudo nodejs tmux && rm -rf /var/lib/apt/lists/*# Create the Hugging Face userRUN useradd -m -u 1000 minecraft# Give the restricted 'minecraft' user passwordless sudo access to unlock the bucketRUN echo "minecraft ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoersUSER minecraft5 unmodified linesCOPY --chown=minecraft start.sh .RUN chmod +x start.sh# Start the wrapperCMD ["./start.sh"]
Dockerfile+4-4