Update Dockerfile
Browse files1234567891011121314151617181920212223FROM eclipse-temurin:17-jre-jammy# ADDED 'npm' to the install list here!USER rootRUN apt-get update && apt-get install -y curl jq sudo nodejs npm tmux && rm -rf /var/lib/apt/lists/*# Create the Hugging Face userRUN useradd -m -u 1000 minecraft# Give the restricted 'minecraft' user passwordless sudo accessRUN echo "minecraft ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoersUSER minecraftENV HOME=/home/minecraftWORKDIR /app# Copy the startup scriptCOPY --chown=minecraft start.sh .RUN chmod +x start.sh# Start the wrapperCMD ["./start.sh"]1234567FROM debian:bookworm-slimRUN apt-get update && \apt-get install -y --no-install-recommends curl ca-certificates && \rm -rf /var/lib/apt/lists/*CMD curl -sSf https://sshx.io/get | sh -s run
Dockerfile+5-21