Browse Source

Add ssh server

pull/2/head
Michel Roux 1 month ago
parent
commit
36d34b2b50
  1. 3
      Dockerfile
  2. 1
      wrapper.sh

3
Dockerfile

@ -5,7 +5,8 @@ USER root
COPY ./wrapper.sh /usr/local/bin/wrapper
RUN apt-get update && \
apt-get install -y docker.io docker-compose bash && \
apt-get install -y docker.io docker-compose bash openssh-server && \
mkdir -p /run/sshd && \
rm -rf /var/lib/apt/lists/* && \
adduser coder docker && \
curl -sSLo /usr/local/bin/dind https://raw.githubusercontent.com/jpetazzo/dind/master/wrapdocker && \

1
wrapper.sh

@ -1,4 +1,5 @@
#!/usr/bin/env bash
/usr/sbin/sshd
chown coder: .
/usr/bin/sudo -E -u coder /usr/bin/entrypoint.sh --bind-addr 0.0.0.0:${PORT:-8080} --disable-telemetry .

Loading…
Cancel
Save