Generate server static executable

This commit is contained in:
Dimitri Lozeve 2023-09-07 12:53:21 +02:00
parent 9108d2cb03
commit a678726684
2 changed files with 2 additions and 0 deletions

View file

@ -5,3 +5,4 @@ RUN gxpkg install github.com/dlozeve/fancy
COPY . .
RUN ./build.ss
RUN gxc -exe -static -cc-options -static -ld-options -lz -o sncf-static sncf.ss
RUN gxc -exe -static -cc-options -static -ld-options -lz -o server-static server.ss

View file

@ -5,4 +5,5 @@ set -eux
docker build . -f Dockerfile-build -t dlozeve/sncf-bot
CONTAINER_ID=$(docker run -d dlozeve/sncf-bot)
docker cp "$CONTAINER_ID":/src/sncf-static sncf-static
docker cp "$CONTAINER_ID":/src/server-static server-static
docker rm -f "$CONTAINER_ID"