build executable inside docker

to avoid segmentation fault
This commit is contained in:
Alexander Bentkamp
2022-10-19 09:16:57 +02:00
parent 121b0d0b8a
commit fd2af2fd24
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -6,7 +6,6 @@ cd $(dirname $0)
# Build elan image if not already present
docker build --pull --rm -f elan.Dockerfile -t elan:latest .
(cd leanserver && lake build)
(cd testgame && lake build)
docker rmi testgame:latest || true
docker build --rm -f server.Dockerfile -t testgame:latest .
+2
View File
@@ -8,4 +8,6 @@ COPY testgame ./testgame
# TODO: make `testgame` a build argument
WORKDIR /leanserver
RUN rm -f ./build/bin/gameserver
RUN lake build
CMD ["./build/bin/gameserver", "TestGame", "../testgame"]