-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
broizter
committed
Mar 4, 2024
1 parent
c7f5a1d
commit c542131
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM debian:bookworm | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y openssh-server curl ca-certificates fish && \ | ||
usermod -s /usr/bin/fish root && \ | ||
rm /etc/motd && \ | ||
rm /etc/update-motd.d/10-uname && \ | ||
mkdir /var/run/sshd && \ | ||
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \ | ||
sed -i 's/X11Forwarding yes/X11Forwarding no/g' /etc/ssh/sshd_config | ||
|
||
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/ | ||
|
||
EXPOSE 22 | ||
|
||
CMD ["/usr/sbin/sshd", "-D"] |