Launch python from shell

This commit is contained in:
Jonathan Ervine 2020-10-27 21:08:06 +08:00
parent 2780d4eff9
commit 534ad8ea88
2 changed files with 2 additions and 3 deletions

View File

@ -22,4 +22,4 @@ RUN pip3 install -r /data/requirements.txt && \
EXPOSE 1025
CMD [ "/usr/bin/python3", "/data/smtp2slack4qnap.py" ]
CMD [ "/bin/sh", "-c", "/usr/bin/python3", "/data/smtp2slack4qnap.py" ]

View File

@ -88,5 +88,4 @@ if __name__ == '__main__':
handler = CustomHandler()
controller = MyController(handler, hostname=LHOST, port=LPORT)
controller.start()
k=input('SMTP server has started ...')
input('SMTP server has started ...')