Gabriel Pariat
2 years ago
4 changed files with 30 additions and 3 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
FROM debian:bookworm |
||||
|
||||
ENV buildpkgs "curl sbcl" |
||||
ENV qlurl https://beta.quicklisp.org/quicklisp.lisp |
||||
|
||||
WORKDIR /usr/src/pariatech-pong/ |
||||
COPY init.lisp . |
||||
COPY game ./game |
||||
COPY server ./server |
||||
|
||||
RUN apt update && \ |
||||
apt install -y ${buildpkgs} && \ |
||||
apt auto-remove -y && \ |
||||
curl -SOL ${qlurl} && \ |
||||
sbcl --load quicklisp.lisp \ |
||||
--eval "(quicklisp-quickstart:install)" \ |
||||
--eval "(sb-ext:quit)" |
||||
|
||||
EXPOSE 54321/tcp |
||||
|
||||
CMD sbcl --load ~/quicklisp/setup.lisp \ |
||||
--eval "(load \"game/game.asd\")" \ |
||||
--eval "(load \"server/server.asd\")" \ |
||||
--eval "(ql:quickload \"server\")" \ |
||||
--eval "(in-package :pong.server)" \ |
||||
--eval "(main)" |
Loading…
Reference in new issue