FROM ubuntu:22.04 ARG GODOT_VERSION="4.4" # Install Godot & templates RUN apt update -y && apt install -y wget unzip fontconfig RUN wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_linux.x86_64.zip \ && wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_export_templates.tpz \ && mkdir -p ~/.cache ~/.config/godot ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable \ && unzip Godot_v${GODOT_VERSION}-stable_linux*.zip \ && mv Godot_v${GODOT_VERSION}-stable_linux*64 /usr/local/bin/godot \ && unzip Godot_v${GODOT_VERSION}-stable_export_templates.tpz \ && mv templates/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable \ && rm Godot_v${GODOT_VERSION}-stable_export_templates.tpz Godot_v${GODOT_VERSION}-stable_linux*.zip # Build application WORKDIR /app ENTRYPOINT [ "godot" ]