Skip to content

Commit dc452f8

Browse files
committed
fix
1 parent 7424385 commit dc452f8

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

docker/Dockerfile-rpc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ COPY . .
2424
RUN mkdir -p ~/.config/common-lisp/
2525
RUN echo "(:source-registry (:tree \"/work/\") :inherit-configuration)" > ~/.config/common-lisp/source-registry.conf
2626

27-
RUN sbcl --disable-ldb --load scripts/build-rpc.lisp
27+
RUN sbcl --dynamic-space-size 4GB --disable-ldb --load scripts/build-rpc.lisp
28+
29+
30+
RUN chmod 755 /work/lem-rpc/lem-rpc
31+
32+
RUN adduser -D user
33+
USER user
34+
WORKDIR /home/user
35+
36+
RUN sbcl --load /work/quicklisp.lisp --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))"
2837

2938
ENTRYPOINT ["/work/lem-rpc/docker/entrypoint.sh"]

docker/entrypoint.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#!/bin/sh -x
22

3-
USER_NAME=${USER_NAME:-user}
4-
adduser -D "$USER_NAME"
5-
6-
chmod 755 /work/lem-rpc/lem-rpc
7-
su - $USER_NAME -c '/work/lem-rpc/lem-rpc --mode websocket --port 50000 --host 0.0.0.0'
3+
/work/lem-rpc/lem-rpc --mode websocket --port 50000 --host 0.0.0.0

0 commit comments

Comments
 (0)