Files
khm/Dockerfile
Alexandr Bogomiakov dd8f895d8a Split cli and gui bins
2025-07-24 04:50:08 +03:00

20 lines
411 B
Docker

# syntax=docker/dockerfile:1
FROM alpine:3.19
# Install only essential runtime dependencies
RUN apk add --no-cache \
ca-certificates \
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"]