Compare commits
3 Commits
84f54b83a8
...
debian-roc
| Author | SHA1 | Date | |
|---|---|---|---|
| 3532401032 | |||
| f0035f0c26 | |||
| 90fd9cdfad |
10
Dockerfile
10
Dockerfile
@@ -33,18 +33,17 @@ eot
|
||||
|
||||
RUN <<eot
|
||||
echo 'export PATH="${PATH}:/root/.local/bin"' >>/root/.bashrc
|
||||
echo 'export LLAMA_THREADS=12' >> ~/.bashrc
|
||||
echo 'export DISPLAY=:99' >> ~/.bashrc
|
||||
echo 'alias lms="~/.lmstudio/bin/lms"' >> ~/.bashrc
|
||||
eot
|
||||
|
||||
ENV DISPLAY=:99
|
||||
# Not sure that this works
|
||||
ENV LLAMA_THREADS=12
|
||||
|
||||
#########################
|
||||
|
||||
FROM baseimage AS final
|
||||
|
||||
ADD ./LM-Studio* /data/lms/
|
||||
ADD https://lmstudio.ai/download/latest/linux/x64 /data/lms/LMStudio.AppImage
|
||||
ADD ./http-server-config.json /http-server-config.json
|
||||
|
||||
RUN <<eot
|
||||
@@ -62,6 +61,9 @@ ADD --chmod=0755 ./docker-healthcheck.sh /usr/local/bin/
|
||||
#HEALTHCHECK --interval=1m --timeout=10s --start-period=1m \
|
||||
# CMD /bin/bash /usr/local/bin/docker-healthcheck.sh || exit 1
|
||||
|
||||
ENV DISPLAY=:99
|
||||
# Not sure that this works
|
||||
ENV LLAMA_THREADS=12
|
||||
|
||||
# Run the server
|
||||
# CMD ["sh", "-c", "tail -f /dev/null"] # For development: keep container open
|
||||
|
||||
@@ -15,11 +15,6 @@ sleep 2
|
||||
sleep 30
|
||||
~/.lmstudio/bin/lms server start --cors &
|
||||
|
||||
|
||||
sleep 5
|
||||
# ~/.cache/lm-studio/bin/lms get ${MODEL_PATH}
|
||||
~/.lmstudio/bin/lms load --ttl 3600 --context-length ${CONTEXT_LENGTH:-16384} ${MODEL_IDENTIFIER:openai/gpt-oss-20b} &
|
||||
|
||||
sleep 20
|
||||
cp -f /http-server-config.json /root/.lmstudio/.internal/http-server-config.json
|
||||
x11vnc -display :99 -forever -rfbauth /root/.vnc/passwd -quiet -listen 0.0.0.0 -xkb
|
||||
|
||||
Reference in New Issue
Block a user