Generate server static executable
This commit is contained in:
parent
9108d2cb03
commit
a678726684
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
1
build.sh
1
build.sh
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue