From 626b1522273e4ad515f4c0dae6d4c7ecbc25244b Mon Sep 17 00:00:00 2001 From: Alexandr Bogomiakov Date: Thu, 24 Jul 2025 05:10:41 +0300 Subject: [PATCH] Split cli and gui bins --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0293f8e..6bf5115 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,11 @@ # syntax=docker/dockerfile:1 -FROM alpine:3.19 +FROM debian:12-slim -# Install glibc compatibility for Alpine -RUN apk add --no-cache \ +# Install only essential runtime dependencies +RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ - gcompat \ - libgcc \ - libstdc++ + && rm -rf /var/lib/apt/lists/* # Copy the CLI binary (without GUI dependencies) ARG TARGETARCH @@ -15,7 +13,7 @@ COPY bin/linux_${TARGETARCH}/khm /usr/local/bin/khm RUN chmod +x /usr/local/bin/khm # Create non-root user -RUN adduser -D -u 1000 khm +RUN useradd -m -u 1000 khm USER khm ENTRYPOINT ["/usr/local/bin/khm"] \ No newline at end of file