Enabling Python optimization when running in Docker and systemd.

This commit is contained in:
Roland 2023-05-23 16:31:10 -06:00
parent e471325bb6
commit ccb28db95c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 6 additions and 2 deletions

View file

@ -15,5 +15,5 @@ COPY modules /opt/wrolpi/modules
COPY requirements.txt /opt/wrolpi/requirements.txt
RUN pip3 install -r /opt/wrolpi/requirements.txt
ENTRYPOINT [ "python3", "/opt/wrolpi/main.py"]
ENTRYPOINT [ "python3", "-OO", "/opt/wrolpi/main.py"]
CMD ["api", "--host", "0.0.0.0" ]