pikaraoke icon indicating copy to clipboard operation
pikaraoke copied to clipboard

Dockerized Deployment V2

Open Jamalarm opened this issue 4 months ago • 17 comments

Hey @vicwomg!

So I'm just taking a stab at this. I'm no expert in Python so I'm running into a few problems but I think the image is building mostly correctly. I made a few changes from the other PR:

  • I decided to go with one of the official Python debian-based images (python:3.12-slim-bookworm) as most of your setup scripts and instructions assume you're on Debian
  • I'm copying in the code directly from the repo, rather than pulling it from git. This is because eventually we should set up a Docker publish step as part of the Github release. Pulling the code from the local repo ensures that the published version matches and doesn't accidentally pull in code from a different release.
  • I borrowed the same entrypoint.sh script from the other PR, but I changed it to call python3 /pikaraoke/pikaraoke/app.py directly rather than using the pikaraoke.sh script.

This is not currently working, as the app startup fails with:

Traceback (most recent call last):
2024-10-05T11:25:28.943391217Z   File "/pikaraoke/pikaraoke/app.py", line 36, in <module>
2024-10-05T11:25:28.943393384Z     from pikaraoke import VERSION, karaoke
2024-10-05T11:25:28.943394842Z ModuleNotFoundError: No module named 'pikaraoke'

Unfortunately this is where I run into the problem of not really knowing Python that well!

Jamalarm avatar Oct 05 '24 11:10 Jamalarm