Refactor Dockerfile and docker-compose to streamline environment variable configuration and remove redundant commands

This commit is contained in:
2025-09-28 22:10:22 +02:00
parent 070c91787d
commit 889a8707e7
2 changed files with 2 additions and 8 deletions

View File

@@ -9,16 +9,15 @@ RUN LATEST_VERSION=$(curl -s https://api.github.com/repos/lordmathis/llamactl/re
mv llamactl /usr/local/bin/ && \
chmod +x /usr/local/bin/llamactl
# Create data directory for llamactl
RUN mkdir -p /data
# Set working directory
RUN mkdir -p /data
WORKDIR /data
# Expose the default llamactl port
EXPOSE 8080
ENV LLAMACTL_LLAMACPP_COMMAND=/app/llama-server
ENV LD_LIBRARY_PATH="/app:/usr/local/lib:/usr/lib"
# Set llamactl as the entrypoint
ENTRYPOINT ["llamactl"]