Update Dockerfile to new organization

This commit is contained in:
Dimitri Lozeve 2022-09-12 18:42:08 +02:00
parent 8c68491550
commit 6a36bc72e6
3 changed files with 7 additions and 5 deletions

View file

@ -2,5 +2,6 @@ FROM gerbil/alpine
RUN gxpkg install github.com/dlozeve/fancy RUN gxpkg install github.com/dlozeve/fancy
COPY sncf.ss . COPY . .
RUN gxc -exe -static -cc-options -static -ld-options -lz -o sncf sncf.ss RUN ./build.ss
RUN gxc -exe -static -cc-options -static -ld-options -lz -o sncf-static sncf.ss

View file

@ -64,8 +64,9 @@ Arguments:
*** Static executable using Docker *** Static executable using Docker
The build script will use Docker to build a fully static executable. The build script will use Docker to build a fully static executable
The Dockerfile is based on the [[https://hub.docker.com/r/gerbil/alpine][gerbil/alpine]] image. =sncf-static= in the current directory. The Dockerfile is based on
the [[https://hub.docker.com/r/gerbil/alpine][gerbil/alpine]] image.
#+begin_src sh #+begin_src sh
./build.sh ./build.sh

View file

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