d64bf905d3
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.
32 lines
1011 B
Docker
32 lines
1011 B
Docker
FROM ubuntu:24.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
cmake \
|
|
git \
|
|
curl \
|
|
ca-certificates \
|
|
libssl-dev \
|
|
libsqlite3-0 \
|
|
pkg-config \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Pre-built neverwinter.nim tools (nwn_gff, nwn_script_comp, etc.)
|
|
RUN curl -L https://github.com/layonara/neverwinter.nim/releases/download/v2.1.2-layonara/neverwinter-tools-linux-x64.tar.gz \
|
|
| tar xz -C /usr/local/bin/
|
|
|
|
# Pre-built nasher (NWN module build tool)
|
|
RUN curl -L https://github.com/squattingmonk/nasher.nim/releases/download/1.1.2/nasher_linux.tar.gz \
|
|
| tar xz -C /usr/local/bin/
|
|
|
|
# Pre-built layonara_nwn (hak builder)
|
|
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/
|
|
|
|
# Verify all tools
|
|
RUN nwn_gff --version && nasher --version && which nwn_script_comp && layonara_nwn --help | head -1
|
|
|
|
WORKDIR /build
|