feat: first commit

This commit is contained in:
mol
2023-12-05 13:16:46 +08:00
commit 3c2ad9cd7d
2 changed files with 24 additions and 0 deletions

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
FROM node:alpine
EXPOSE 8080
WORKDIR /app
VOLUME [ "/data" ]
EXPOSE 22
RUN apt-get update && apt-get install -y vim && apt-get install -y git && apt-get install -y openssh-server
RUN npm i -g n && n auto && npm i -g live-server
RUN git config --global user.name $GIT_USER && git config --global user.email $GIT_EMAIL
RUN echo "root:${PASSWD}" | chpasswd
RUN rm -f /etc/ssh/ssh_host_rsa_key && \
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' && \
rm -f /etc/ssh/ssh_host_dsa_key && \
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N '' && \
rm -f /etc/ssh/ssh_host_ecdsa_key && \
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' && \
rm -f /etc/ssh/ssh_host_ed25519_key && \
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
RUN sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config
CMD ["/usr/sbin/sshd", "-D"]

0
README.md Normal file
View File