Update
This commit is contained in:
parent
1683ce2fde
commit
eb33b607c2
@ -1,4 +1,5 @@
|
|||||||
FROM python:3-slim
|
FROM python:3-slim
|
||||||
COPY server.py /server.py
|
COPY server.py /server.py
|
||||||
|
COPY start.sh /start.sh
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["python3", "/server.py"]
|
CMD ["/bin/sh", "/start.sh"]
|
5
basic_server/start.sh
Normal file
5
basic_server/start.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
nohup python3 /server.py > /var/log/server.log 2>&1 &
|
||||||
|
|
||||||
|
while true; do /bin/bash; done
|
Loading…
Reference in New Issue
Block a user