8 lines
314 B
Docker
8 lines
314 B
Docker
|
FROM library/alpine
|
||
|
RUN apk add --no-cache openssh && \
|
||
|
sed -i /etc/ssh/sshd_config -e s/'#Port.*'/'Port 2222'/ -e s/'AllowTcpForwarding.*'/'AllowTcpForwarding yes'/
|
||
|
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
|