Skip to content

Commit

Permalink
add labels and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Bühler committed Dec 13, 2023
1 parent 86dce92 commit 19ee3eb
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions godot-build.dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0
ARG DOTNET_VERSION=8.0
ARG GODOT_VERSION=3.5.3
ARG COMMIT_SHA=unknown

FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}

ENV GODOT_VERSION=${GODOT_VERSION}
ENV DOTNET_VERSION=${DOTNET_VERSION}

LABEL org.opencontainers.image.authors="christoph@smartive.ch" \
org.opencontainers.image.url="https://github.com/smartive/godot-infinite-sokoban" \
org.opencontainers.image.documentation="https://github.com/smartive/godot-infinite-sokoban/blob/main/README.md" \
org.opencontainers.image.source="https://github.com/smartive/godot-infinite-sokoban/blob/main/godot-build.dockerfile" \
org.opencontainers.image.revision="${COMMIT_SHA}" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.title="Dotnet Godot Build" \
org.opencontainers.image.description="Image to build godot projects with dotnet instead of mono to support modern language versions."

RUN apt update && apt install -y \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/godotengine/godot/releases/download/3.5.3-stable/Godot_v3.5.3-stable_mono_linux_headless_64.zip -O godot.zip && \
wget https://github.com/godotengine/godot/releases/download/3.5.3-stable/Godot_v3.5.3-stable_mono_export_templates.tpz -O export_templates.zip
RUN wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_mono_linux_headless_64.zip -O godot.zip && \
wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_mono_export_templates.tpz -O export_templates.zip

RUN unzip -d godot_unzip godot.zip && \
unzip -d export_templates export_templates.zip && \
mv godot_unzip/Godot_* ./godot && \
mv ./godot/Godot_* ./godot/godot && \
ln -s /godot/godot /usr/bin/godot && \
mkdir -p /root/.local/share/godot/templates/3.5.3.stable.mono && \
mv export_templates/templates/* /root/.local/share/godot/templates/3.5.3.stable.mono && \
mkdir -p /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono && \
mv export_templates/templates/* /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono && \
rm -rf export_templates && rm -rf godot_unzip && rm godot.zip && rm export_templates.zip

0 comments on commit 19ee3eb

Please sign in to comment.