mirror of
https://github.com/house-of-vanity/khm.git
synced 2025-08-21 14:27:14 +00:00
Split cli and gui bins
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,13 +1,11 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM alpine:3.19
|
FROM debian:12-slim
|
||||||
|
|
||||||
# Install glibc compatibility for Alpine
|
# Install only essential runtime dependencies
|
||||||
RUN apk add --no-cache \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gcompat \
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
libgcc \
|
|
||||||
libstdc++
|
|
||||||
|
|
||||||
# Copy the CLI binary (without GUI dependencies)
|
# Copy the CLI binary (without GUI dependencies)
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
@@ -15,7 +13,7 @@ COPY bin/linux_${TARGETARCH}/khm /usr/local/bin/khm
|
|||||||
RUN chmod +x /usr/local/bin/khm
|
RUN chmod +x /usr/local/bin/khm
|
||||||
|
|
||||||
# Create non-root user
|
# Create non-root user
|
||||||
RUN adduser -D -u 1000 khm
|
RUN useradd -m -u 1000 khm
|
||||||
USER khm
|
USER khm
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/khm"]
|
ENTRYPOINT ["/usr/local/bin/khm"]
|
Reference in New Issue
Block a user