Skip to content

Commit

Permalink
fix(image): Support upgrading for container mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JacieChao authored and Jason-ZW committed Apr 7, 2021
1 parent 7aef5ad commit d28bc14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ RUN mkdir /home/shell && \
echo 'source <(autok3s kubectl completion bash)' >> /home/shell/.bashrc && \
echo 'PS1="> "' >> /home/shell/.bashrc

ENV AUTOK3S_CONFIG /root/.autok3s

WORKDIR /home/shell
VOLUME /var/lib/autok3s
VOLUME /root/.autok3s
COPY bin/autok3s_${TARGETOS}_${TARGETARCH} /usr/local/bin/autok3s
ENTRYPOINT ["autok3s"]
CMD ["serve", "--bind-address=0.0.0.0"]

0 comments on commit d28bc14

Please sign in to comment.