Skip to content

Commit

Permalink
bump v1.22.13-k3s1
Browse files Browse the repository at this point in the history
  • Loading branch information
fragolinux committed Aug 26, 2022
1 parent 0f703d7 commit 6397a83
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ FROM alpine:3.16.2
RUN apk add --no-cache iptables ip6tables nfs-utils; \
echo 'hosts: files dns' > /etc/nsswitch.conf

COPY --from=rancher/k3s:v1.22.12-k3s1 /bin /opt/k3s/bin
ARG VERSION="dev"
COPY --from=rancher/k3s:v1.22.13-k3s1 /bin /bin

RUN mkdir -p /etc && \
echo 'hosts: files dns' > /etc/nsswitch.conf && \
echo "PRETTY_NAME=\"K3s ${VERSION}\"" > /etc/os-release && \
chmod 1777 /tmp
VOLUME /var/lib/kubelet
VOLUME /var/lib/rancher/k3s
VOLUME /var/lib/cni
VOLUME /var/log

ENV PATH="$PATH:/opt/k3s/bin:/opt/k3s/bin/aux"
ENV PATH="$PATH:/bin/aux"
ENV CRI_CONFIG_FILE="/var/lib/rancher/k3s/agent/etc/crictl.yaml"

ENTRYPOINT ["/opt/k3s/bin/k3s"]
ENTRYPOINT ["/bin/k3s"]
CMD ["agent"]

0 comments on commit 6397a83

Please sign in to comment.