31 lines
964 B
Docker
31 lines
964 B
Docker
# Dockerfile.installer
|
|
# Builds the livetrace Windows installer (.exe) using NSIS on Linux.
|
|
#
|
|
# Usage (from your project root):
|
|
# docker build -f Dockerfile.installer -t livetrace-installer .
|
|
# docker run --rm -v "$PWD/dist":/out livetrace-installer
|
|
#
|
|
# The finished installer lands at ./dist/livetrace-3.3.2-setup.exe
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
# Install NSIS (makensis) — no Go needed, binary is pre-built
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends nsis && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /build
|
|
|
|
# Copy the NSIS script and helper
|
|
COPY installer/livetrace-installer.nsi .
|
|
COPY installer/EnvVarUpdate.nsh .
|
|
|
|
# Copy the pre-built Windows binary from dist/
|
|
COPY dist/livetrace-windows-amd64.exe .
|
|
|
|
# Build the installer
|
|
RUN makensis livetrace-installer.nsi
|
|
|
|
# Default: copy the output to /out (bind-mount your dist/ folder there)
|
|
CMD ["sh", "-c", "cp livetrace-*.exe /out/ && echo 'Installer written to /out/'"]
|