pikaraoke
pikaraoke copied to clipboard
Dockerized Deployment V2
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 callpython3 /pikaraoke/pikaraoke/app.py
directly rather than using thepikaraoke.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!