Update Dockerfile to new organization
This commit is contained in:
parent
8c68491550
commit
6a36bc72e6
3 changed files with 7 additions and 5 deletions
|
@ -2,5 +2,6 @@ FROM gerbil/alpine
|
|||
|
||||
RUN gxpkg install github.com/dlozeve/fancy
|
||||
|
||||
COPY sncf.ss .
|
||||
RUN gxc -exe -static -cc-options -static -ld-options -lz -o sncf sncf.ss
|
||||
COPY . .
|
||||
RUN ./build.ss
|
||||
RUN gxc -exe -static -cc-options -static -ld-options -lz -o sncf-static sncf.ss
|
||||
|
|
|
@ -64,8 +64,9 @@ Arguments:
|
|||
|
||||
*** Static executable using Docker
|
||||
|
||||
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.
|
||||
The build script will use Docker to build a fully static executable
|
||||
=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
|
||||
./build.sh
|
||||
|
|
2
build.sh
2
build.sh
|
@ -4,5 +4,5 @@ set -eux
|
|||
|
||||
docker build . -t 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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue