feat: optimize builder Dockerfile with pre-built release binaries

Download neverwinter.nim tools, nasher, and layonara_nwn from GitHub
Releases instead of compiling from source. Reduces build time from
~15 minutes to ~45 seconds.
This commit is contained in:
plenarius
2026-04-21 00:06:16 -04:00
parent 288c762356
commit d64bf905d3
+12 -15
View File
@@ -7,28 +7,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \ cmake \
git \ git \
curl \ curl \
wget \
unzip \
ca-certificates \ ca-certificates \
libssl-dev \ libssl-dev \
libsqlite3-0 \
pkg-config \ pkg-config \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install Nim via choosenim # Pre-built neverwinter.nim tools (nwn_gff, nwn_script_comp, etc.)
RUN curl https://nim-lang.org/choosenim/init.sh -sSf | bash -s -- -y RUN curl -L https://github.com/layonara/neverwinter.nim/releases/download/v2.1.2-layonara/neverwinter-tools-linux-x64.tar.gz \
ENV PATH="/root/.nimble/bin:${PATH}" | tar xz -C /usr/local/bin/
RUN choosenim 2.2.0
# Install neverwinter.nim tools (nwn_gff, nwn_script_comp, etc.) # Pre-built nasher (NWN module build tool)
RUN nimble install neverwinter@2.1.2 -y RUN curl -L https://github.com/squattingmonk/nasher.nim/releases/download/1.1.2/nasher_linux.tar.gz \
| tar xz -C /usr/local/bin/
# Install nasher # Pre-built layonara_nwn (hak builder)
RUN nimble install nasher -y RUN curl -L https://github.com/plenarius/layonara_nwn/releases/download/v0.1.1/layonara_nwn-linux-x64.tar.gz \
| tar xz -C /usr/local/bin/
# Install layonara_nwn (hak builder) # Verify all tools
RUN nimble install https://github.com/plenarius/layonara_nwn -y RUN nwn_gff --version && nasher --version && which nwn_script_comp && layonara_nwn --help | head -1
# Verify tools
RUN nwn_gff --version && nasher --version && which nwn_script_comp
WORKDIR /build WORKDIR /build