diff options
| author | jerome <jerome@xlinfo.fr> | 2025-10-13 22:01:46 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-10-13 22:01:46 +0200 |
| commit | 6f029d4d58b916da45a8de76360222ac6e77adeb (patch) | |
| tree | 96d178228471eff65037bfd48082e2d76137919a /Dockerfile | |
| download | ssh-6f029d4d58b916da45a8de76360222ac6e77adeb.tar.gz ssh-6f029d4d58b916da45a8de76360222ac6e77adeb.zip | |
initial commit
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5f5bc62 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:slim +RUN apt-get update && apt-get install -y openssh-server +RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config +RUN echo "python" >> /root/.bashrc +RUN echo "exit" >> /root/.bashrc +COPY entrypoint.sh /usr/local/sbin/ +EXPOSE 22 +ENTRYPOINT ["entrypoint.sh"] |
