You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
640 B

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)"