mirror of
https://github.com/claunia/cross-docks.git
synced 2025-12-16 19:24:49 +00:00
20 lines
558 B
Docker
20 lines
558 B
Docker
|
|
FROM amigadev/crosstools:x86_64-aros
|
||
|
|
|
||
|
|
LABEL maintainer="claunia@claunia.com"
|
||
|
|
|
||
|
|
RUN apt-get update && apt-get install -y ssh gdb cmake rsync tar python && apt-get clean
|
||
|
|
|
||
|
|
RUN ( \
|
||
|
|
echo 'LogLevel DEBUG2'; \
|
||
|
|
echo 'PermitRootLogin yes'; \
|
||
|
|
echo 'PasswordAuthentication yes'; \
|
||
|
|
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
|
||
|
|
) > /etc/ssh/sshd_config_remote_dev \
|
||
|
|
&& mkdir /run/sshd
|
||
|
|
|
||
|
|
RUN useradd -m user \
|
||
|
|
&& yes password | passwd user
|
||
|
|
|
||
|
|
RUN usermod -s /bin/bash user
|
||
|
|
|
||
|
|
CMD ["/usr/sbin/sshd" "-D" "-e" "-f" "/etc/ssh/sshd_config_remote_dev"]
|