add build mechanism for nng

This commit is contained in:
Alexander Bentkamp
2023-03-23 16:23:06 +01:00
parent 7992cffa26
commit dac15d84b5
5 changed files with 20 additions and 5 deletions
+2 -2
View File
@@ -1,10 +1,11 @@
ARG GAME_DIR
FROM elan:latest
WORKDIR /
# Copy lean files
COPY leanserver ./leanserver
COPY testgame ./testgame
COPY $GAME_DIR ./$GAME_DIR
# TODO: make `testgame` a build argument
WORKDIR /leanserver
@@ -12,4 +13,3 @@ RUN rm -f ./build/bin/gameserver
RUN lake build
WORKDIR /leanserver/build/bin/
CMD ["./gameserver", "--server", "testgame", "TestGame", "TestGame"]