FalseSSH/Dockerfile
Alexander be95f39140 Initial commit
Signed-off-by: Alexander <hi@odyssey346.dev>
2023-02-07 15:14:14 +01:00

17 lines
394 B
Docker

FROM alpine:latest
RUN apk add openssh
RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
RUN adduser -h /home/user -s /bin/sh -D user
# sounds insecure, which it is, but you're in a container and you're supposed to change it
RUN echo 'user:password' | chpasswd
COPY motd /
RUN rm /etc/motd && cat /motd >> /etc/motd
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 22
COPY entrypoint.sh /