Modifying launch of API to use 'sanic' executable. This was done because startup is much faster.

This commit is contained in:
Roland 2024-05-01 18:42:15 -06:00
parent 9ee73af61d
commit 41f3969330
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 16 additions and 63 deletions

View file

@ -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"]