更新 Dockerfile

update
This commit is contained in:
wangzixiang 2024-06-04 15:56:49 +08:00
parent 2421fbedf8
commit c56af71076
1 changed files with 20 additions and 15 deletions

View File

@ -1,7 +1,12 @@
FROM alpine FROM ubuntu
MAINTAINER ZK <zkalgclub@163.com> MAINTAINER ZK <zkalgclub@163.com>
RUN apk add --update openssh-client && rm -rf /var/cache/apk/* WORKDIR $MYPATH
RUN apt-get update
RUN apt-get install -y vim
RUN apt-get install -y net-tools
RUN apt-get install -y iputils-ping
CMD rm -rf /root/.ssh && mkdir /root/.ssh && cp -R /root/ssh/* /root/.ssh/ && chmod -R 600 /root/.ssh/* && \ CMD rm -rf /root/.ssh && mkdir /root/.ssh && cp -R /root/ssh/* /root/.ssh/ && chmod -R 600 /root/.ssh/* && \
ssh \ ssh \