esp32.Dockerfile 527 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM espressif/idf:latest

RUN apt-get update \
  && apt-get install -y ssh \
        rsync \
        tar \
  && apt-get clean

RUN ( \
echo 'LogLevel DEBUG2'; \
echo 'PermitRootLogin yes'; \
echo 'PasswordAuthentication yes'; \
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
14
) > /etc/ssh/sshd_config_container \
Jacob Priddy's avatar
Jacob Priddy committed
15
16
17
18
19
&& mkdir /run/sshd

RUN groupmod -g 985 users && useradd -u 1000 -ms /bin/bash -g users builder \
&& yes password | passwd builder

20
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_container"]