Skip to content

Commit

Permalink
Deprecate PIDLock initialization (#65)
Browse files Browse the repository at this point in the history
Resolve Dockerfile warnings
  • Loading branch information
NeonDaniel authored Feb 11, 2025
1 parent 8ec1fcf commit ecc3118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM python:3.10-slim
LABEL vendor=neon.ai \
ai.neon.name="neon-gui"

ENV OVOS_CONFIG_BASE_FOLDER neon
ENV OVOS_CONFIG_FILENAME neon.yaml
ENV XDG_CONFIG_HOME /config
ENV OVOS_CONFIG_BASE_FOLDER=neon
ENV OVOS_CONFIG_FILENAME=neon.yaml
ENV XDG_CONFIG_HOME=/config

EXPOSE 18181

Expand Down
3 changes: 1 addition & 2 deletions neon_gui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@
from neon_gui.service import NeonGUIService
from neon_utils.log_utils import init_log
from neon_utils.process_utils import start_malloc, snapshot_malloc, print_malloc
from ovos_utils.process_utils import reset_sigint_handler, PIDLock
from ovos_utils.process_utils import reset_sigint_handler


def main(*args, **kwargs):
init_log(log_name="gui")
malloc_running = start_malloc(stack_depth=4)
reset_sigint_handler()
PIDLock("gui")

gui = NeonGUIService(*args, **kwargs)
gui.start()
Expand Down

0 comments on commit ecc3118

Please sign in to comment.