Download Dockerfile from smokymath/minebutt: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/smokymath/minebutt/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/smokymath/minebutt/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/smokymath/minebutt/resolve/main/Dockerfile
1.06 kB
| FROM eclipse-temurin:21-jdk | |
| WORKDIR /app | |
| # Install essentials with clean permissions | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| python3 \ | |
| python3-venv \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && mkdir -p /app/cache \ | |
| && chmod -R 777 /app | |
| # Ngrok setup with explicit permissions | |
| RUN wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz \ | |
| && tar xzf ngrok-v3-stable-linux-amd64.tgz \ | |
| && rm ngrok-v3-stable-linux-amd64.tgz \ | |
| && chmod +x ngrok \ | |
| && mv ngrok /usr/local/bin/ | |
| # Python environment | |
| RUN python3 -m venv /opt/venv | |
| ENV PATH="/opt/venv/bin:$PATH" | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # Server setup | |
| RUN wget https://api.papermc.io/v2/projects/paper/versions/1.21.5/builds/7/downloads/paper-1.21.5-7.jar -O paper.jar \ | |
| && echo "eula=true" > eula.txt \ | |
| && echo "gamemode=creative" >> server.properties \ | |
| && echo "force-gamemode=true" >> server.properties | |
| COPY app.py start.sh ./ | |
| RUN chmod +x start.sh | |
| EXPOSE 25565 4040 | |
| CMD ["python", "app.py"] |