更新 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,15 +1,20 @@
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
CMD rm -rf /root/.ssh && mkdir /root/.ssh && cp -R /root/ssh/* /root/.ssh/ && chmod -R 600 /root/.ssh/* && \ RUN apt-get update
ssh \ RUN apt-get install -y vim
-C \ RUN apt-get install -y net-tools
-f \ RUN apt-get install -y iputils-ping
-N \
-g \ CMD rm -rf /root/.ssh && mkdir /root/.ssh && cp -R /root/ssh/* /root/.ssh/ && chmod -R 600 /root/.ssh/* && \
-p $REMOTE_PORT \ ssh \
-L $LOCAL_LISTEN_PORT:$LOCAL_LISTEN_HOST:$REMOTE_LISTEN_PORT $REMOTE_USER@$REMOTE_HOST \ -C \
&& while true; do sleep 10; done; -f \
EXPOSE 1-65535 -N \
-g \
-p $REMOTE_PORT \
-L $LOCAL_LISTEN_PORT:$LOCAL_LISTEN_HOST:$REMOTE_LISTEN_PORT $REMOTE_USER@$REMOTE_HOST \
&& while true; do sleep 10; done;
EXPOSE 1-65535