diff --git a/Dockerfile b/Dockerfile index 68a2bed..41729f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,70 +1,45 @@ - -ARG baseimage=debian:testing - +ARG baseimage=fedora:latest FROM ${baseimage} AS baseimage ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 - - ENV TZ="Europe/Berlin" - -ARG DEBIAN_FRONTEND=noninteractive # Build arguments ARG ARG_UID=1000 ARG ARG_GID=1000 - RUN <>/root/.bashrc echo 'export LLAMA_THREADS=12' >> ~/.bashrc echo 'export DISPLAY=:99' >> ~/.bashrc echo 'alias lms="~/.lmstudio/bin/lms"' >> ~/.bashrc eot - - ######################### - FROM baseimage AS final - -ADD https://lmstudio.ai/download/latest/linux/x64 /data/lms/LMStudio.AppImage +#ADD https://lmstudio.ai/download/latest/linux/x64 /data/lms/LMStudio.AppImage +ADD LMStudio.AppImage /data/lms/LMStudio.AppImage ADD ./http-server-config.json /http-server-config.json - RUN < /dev/stdout 2>/dev/stderr & sleep 2 # ----------------------------------- /squashfs-root/lm-studio --no-sandbox --threads 12 & -sleep 30 +sleep 20 ~/.lmstudio/bin/lms server start --cors & -sleep 20 +sleep 10 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 +#x11vnc -display :99 -forever -rfbauth /root/.vnc/passwd -quiet -listen 0.0.0.0 -xkb /bin/bash