Files
fvcomstats/fvcomstats.def
2024-04-23 09:22:29 +02:00

47 lines
1.1 KiB
Modula-2

Bootstrap: docker
From: mcr.microsoft.com/dotnet/sdk:8.0
Stage: build
%files
. /build
%post
apt-get update && apt-get install -y ca-certificates gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
# Install node, 7zip, yarn, git, process tools
apt update \
&& apt install -y nodejs p7zip-full git procps ssh-client
# Clean up
apt autoremove -y \
&& apt clean -y \
&& rm -rf /var/lib/apt/lists/*
# Install dotnet tools
dotnet tool install fable -g
cd /build
dotnet run bundle
Bootstrap: docker
From: mcr.microsoft.com/dotnet/runtime:8.0
Stage: runtime
%files from build
/build/dist /app
%post
apt update \
&& apt install -y libnetcdf-dev
# Clean up
apt autoremove -y \
&& apt clean -y \
&& rm -rf /var/lib/apt/lists/*
%runscript
exec /app/FvcomStats "$@"