Skip to content

Commit

Permalink
Merge pull request #3981 from twz123/k0s-in-docker-less-packages
Browse files Browse the repository at this point in the history
Install less packages in k0s Docker image
  • Loading branch information
twz123 authored Jan 31, 2024
2 parents eade232 + bdcc1f4 commit 96a5322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ ARG ALPINE_VERSION
FROM docker.io/library/${ARCH}alpine:$ALPINE_VERSION
ARG TARGETARCH

RUN apk add --no-cache bash coreutils findutils iptables curl tini
RUN apk add --no-cache iptables tini

ENV KUBECONFIG=/var/lib/k0s/pki/admin.conf

ADD docker-entrypoint.sh /entrypoint.sh
ADD ./k0s-${TARGETARCH}/k0s /usr/local/bin/k0s

ENTRYPOINT ["/sbin/tini", "--", "/bin/sh", "/entrypoint.sh" ]
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh" ]

CMD ["k0s", "controller", "--enable-worker"]

0 comments on commit 96a5322

Please sign in to comment.