Update Dockerfile
Browse files12345678910113 unmodified lines1516171819FROM eclipse-temurin:17-jre-jammy# Install curl and jq for our auto-downloader scriptUSER rootRUN apt-get update && apt-get install -y curl jq && rm -rf /var/lib/apt/lists/*# Hugging Face requires running as a non-root user (UID 1000)RUN useradd -m -u 1000 minecraftUSER minecraftENV HOME=/home/minecraft3 unmodified linesCOPY --chown=minecraft start.sh .RUN chmod +x start.sh# Start the EaglerXServer networkCMD ["./start.sh"]1234567891011121314153 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 minecraftENV HOME=/home/minecraft3 unmodified linesCOPY --chown=minecraft start.sh .RUN chmod +x start.sh# Start the serverCMD ["./start.sh"]
Dockerfile+8-4