2023-02-11 13:21:56 +00:00
|
|
|
FROM library/alpine
|
|
|
|
RUN apk add --no-cache openssh && \
|
2023-02-11 13:34:29 +00:00
|
|
|
sed -i /etc/ssh/sshd_config -e s/'#Port.*'/'Port 2222'/ -e s/'AllowTcpForwarding.*'/'AllowTcpForwarding yes'/ && \
|
|
|
|
ssh-keygen -A
|
2023-02-11 13:21:56 +00:00
|
|
|
RUN adduser -D -s /bin/ash beagle
|
|
|
|
ADD beagle.key /home/beagle/.ssh/authorized_keys
|
|
|
|
RUN passwd -u beagle && \
|
|
|
|
chown -R beagle:beagle /home/beagle
|