FROM python:3.10

WORKDIR /workspace/suno

RUN apt-get update && apt-get install -y ffmpeg

# install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv

# install PDM
RUN pip install -U pip setuptools wheel
RUN pip install pdm

# copy files
COPY requirements.txt .
RUN pip install --no-deps -r requirements.txt

COPY . .

CMD ["uv", "run", "celery", "--app", "studio_api", "worker", "--concurrency", "2", "-l", "info"]
