feat: clean up /etc/skel and move ssh key to /etc/ssh/authorized_keys/

This commit is contained in:
Justin Lin committed 2024-10-14 17:48:05 +08:00
1 parent 31301419ad
commit 58354b7cd8
3 files changed
+8 -7

No files matched your search

+2
View File
@@ -22,6 +22,8 @@ ENV NODE_PATH=/usr/src/node_modules
COPY ./packages/container /usr/local/lib/container
COPY ./quests/.includes/zshrc /etc/zsh/zshrc
RUN rm -f /etc/motd /etc/issue /etc/issue.net /etc/update-motd.d/*
RUN rm -rf /etc/skel && mkdir -p /etc/skel
RUN mkdir -p /etc/ssh/authorized_keys && chmod 755 /etc/ssh/authorized_keys
COPY ./quests/.includes/sshd_config /etc/ssh/sshd_config
EXPOSE 22