mirror of
https://github.com/house-of-vanity/khm.git
synced 2025-08-21 14:27:14 +00:00
20 lines
411 B
Docker
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"] |