Files
khm/Dockerfile
Alexandr Bogomiakov 828bb74780 Split cli and gui bins
2025-07-24 05:01:04 +03:00

21 lines
420 B
Docker

# syntax=docker/dockerfile:1
FROM alpine:3.19
# Install glibc compatibility for Alpine
RUN apk add --no-cache \
ca-certificates \
gcompat \
libgcc \
libstdc++
# Copy the CLI binary (without GUI dependencies)
ARG TARGETARCH
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
USER khm
ENTRYPOINT ["/usr/local/bin/khm"]