mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
Modifying launch of API to use 'sanic' executable. This was done because startup is much faster.
This commit is contained in:
parent
9ee73af61d
commit
41f3969330
4 changed files with 16 additions and 63 deletions
|
|
@ -17,5 +17,4 @@ COPY main.py /opt/wrolpi/
|
|||
COPY wrolpi /opt/wrolpi/wrolpi
|
||||
COPY modules /opt/wrolpi/modules
|
||||
|
||||
ENTRYPOINT [ "python3", "-OO", "/opt/wrolpi/main.py"]
|
||||
CMD ["-vv", "api", "--host", "0.0.0.0"]
|
||||
CMD ["sanic", "main:api_app", "--host", "0.0.0.0", "--port", "8081"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue