This commit is contained in:
Francesco De Carlo 2025-08-02 08:44:50 +02:00
commit d337f747f3
10 changed files with 19 additions and 16 deletions

View file

@ -12,5 +12,6 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["flask", "--app", "src.app", "run", "--debug", "--host=0.0.0.0"]
# CMD ["flask", "--app", "src.app", "run", "--debug", "--host=0.0.0.0"]
CMD ["python3", "src/app.py"]
# flask --app src.app run --host=0.0.0.0 --port=5001 --debug

View file

@ -4,4 +4,5 @@ flask-socketio
dotenv
requests
qrcode
Pillow
Pillow
eventlet>=0.33

View file

@ -287,4 +287,4 @@ def get_audio_url():
if __name__ == "__main__":
socketio.run(app, debug=True)
socketio.run(app, host="0.0.0.0", port=5000, debug=True)

View file

@ -1,7 +1,7 @@
import random
from dataclasses import dataclass
from .song import Song
from song import Song
USER_SCORE_WEIGHT = 0.7
ARTIST_WEIGHT = 0.1

View file

@ -1,7 +1,7 @@
from dataclasses import dataclass
from sqlite3 import Cursor
from .connect import get_connection
from connect import get_connection
def init_db(db: Cursor):

View file

@ -4,7 +4,7 @@ from sqlite3 import Cursor
from flask import Flask
from flask_socketio import SocketIO
from .room import Room
from room import Room
@dataclass