Launch python from shell
This commit is contained in:
parent
2780d4eff9
commit
534ad8ea88
@ -22,4 +22,4 @@ RUN pip3 install -r /data/requirements.txt && \
|
|||||||
|
|
||||||
EXPOSE 1025
|
EXPOSE 1025
|
||||||
|
|
||||||
CMD [ "/usr/bin/python3", "/data/smtp2slack4qnap.py" ]
|
CMD [ "/bin/sh", "-c", "/usr/bin/python3", "/data/smtp2slack4qnap.py" ]
|
||||||
|
|||||||
@ -88,5 +88,4 @@ if __name__ == '__main__':
|
|||||||
handler = CustomHandler()
|
handler = CustomHandler()
|
||||||
controller = MyController(handler, hostname=LHOST, port=LPORT)
|
controller = MyController(handler, hostname=LHOST, port=LPORT)
|
||||||
controller.start()
|
controller.start()
|
||||||
|
input('SMTP server has started ...')
|
||||||
k=input('SMTP server has started ...')
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user