[F] Fix devtainer

This commit is contained in:
Azalea
2026-03-28 03:47:42 -04:00
parent e334ada5b4
commit af136b906d
+4 -7
View File
@@ -1,9 +1,11 @@
FROM archlinux:latest
RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm openssh sudo jdk17-openjdk \
&& pacman -S --noconfirm openssh sudo jdk17-openjdk wget which procps-ng zsh git curlie micro ripgrep python3 exa \
&& rm -rf /var/cache/pacman/pkg/* \
&& mkdir -p /var/run/sshd
&& mkdir -p /var/run/sshd \
&& chsh -s /bin/zsh root \
&& curl -sL hydev.org/zsh | bash
RUN sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config \
&& sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config \
@@ -12,9 +14,4 @@ RUN sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config \
RUN ssh-keygen -A && passwd -d root
RUN pacman -S --noconfirm zsh git curlie micro ripgrep python3 exa \
&& rm -rf /var/cache/pacman/pkg/* \
&& chsh -s /bin/zsh root \
&& curl -sL hydev.org/zsh | bash
CMD ["/usr/sbin/sshd", "-D"]