diff options
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"] |
