Restoring main.py as method to start WROLPi API because it is required to upgrade docker database.

This commit is contained in:
Roland 2024-05-02 10:56:43 -06:00
parent 2924867f55
commit f0e4302de8
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 56 additions and 4 deletions

View file

@ -17,4 +17,5 @@ COPY main.py /opt/wrolpi/
COPY wrolpi /opt/wrolpi/wrolpi
COPY modules /opt/wrolpi/modules
CMD ["sanic", "main:api_app", "--host", "0.0.0.0", "--port", "8081"]
ENTRYPOINT [ "python3", "-OO", "/opt/wrolpi/main.py"]
CMD ["-vv", "api", "--host", "0.0.0.0"]