title: Python module not running in docker container
body: <p>Dockerfile:</p>
  <pre><code>FROM python:3.10-slim
  WORKDIR /watch
  ADD requirements.txt /app/requirements.txt
  RUN pip install --no-cache-dir -r /app/requirements.txt
  ADD webwatcher /app/webwatcher
  
  VOLUME /watch
  ENV IS_DOCKER=true
  ENV PYTHONPATH &quot;/app&quot;
  ENTRYPOINT python3 -m webwatcher
  </code></pre>
  <p>My <code>__main__.py</code> in the module</p>
  <pre class="lang-py prettyprint-override"><code>import signal
  from time import sleep
  from .watchdog import register_observer
  
  observer = register_observer()
  
  def finish(signum, frame):
      print('\nExiting application...')
      observer.stop()
      observer.join()
      exit(0)
  
  print('Registering signals')
  signal.signal(signal.SIGTERM, finish)
  signal.signal(signal.SIGINT, finish)
  
  print('Running module')
  observer.start()
  while True:
      sleep(1)
  </code></pre>
  <p>I then build the container</p>
  <pre><code>docker build -t webwatcher:latest .
  </code></pre>
  <p>And run</p>
  <pre><code>docker run --rm --name web -v path:/watch/path webwatcher:latest
  </code></pre>
  <p>But when I run, it shows no output at all.  It also does not let me quit with Ctrl+C from the run command, nor does <code>docker stop</code> work (it times out then kills it).</p>
  <p>Why isn't the module being run properly from the container?</p>