Created
October 5, 2025 09:58
-
-
Save goncalor/7adb74e1676f3faa7bd1731a7023ab58 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| FROM alpine | |
| WORKDIR /app | |
| RUN adduser -h /app -D user | |
| RUN apk add tinyssh ucspi-tcp6 | |
| USER user | |
| RUN tinysshd-makekey ./sshkeydir | |
| EXPOSE 2222 | |
| CMD tcpserver -UHRDl0 0 2222 /usr/sbin/tinysshnoneauthd -vv -e 'cat /etc/motd' sshkeydir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment