dot / Dockerfile
valent-p's picture
Update Dockerfile
dc3fb42 verified
Raw History Blame Contribute Delete
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"]