Download Dockerfile from valent-p/dot: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/spaces/valent-p/dot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/valent-p/dot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/valent-p/dot/resolve/main/Dockerfile
808 Bytes
| # Use Ubuntu as the base image | |
| FROM ubuntu:22.04 | |
| # Install necessary libraries for Godot | |
| RUN apt-get update && apt-get install -y \ | |
| libfontconfig1 \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create a user with ID 1000 (Required by Hugging Face) | |
| RUN useradd -m -u 1000 user | |
| # Set the working directory | |
| WORKDIR /home/user/app | |
| # Copy your exported server files into the container | |
| # We assume your file is named DotsServer.x86_64 based on the error | |
| COPY --chown=user:user DotsServer.x86_64 . | |
| # --- FIX STARTS HERE --- | |
| # Grant executable permission to the binary | |
| RUN chmod +x ./DotsServer.x86_64 | |
| # --- FIX ENDS HERE --- | |
| # Switch to the non-root user | |
| USER user | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Run the Godot server in headless mode | |
| CMD ["./DotsServer.x86_64", "--headless", "--verbose"] |