From 9c642b2f6c93b8e5ca378e72a142d261334c9d5b Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Tue, 11 Mar 2025 17:08:24 +0800 Subject: [PATCH] chore: Add lyric build env --- docker/base/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/base/Dockerfile b/docker/base/Dockerfile index da4ad52c4..d555b42b5 100644 --- a/docker/base/Dockerfile +++ b/docker/base/Dockerfile @@ -39,6 +39,8 @@ RUN if [ "$USE_TSINGHUA_UBUNTU" = "true" ]; then \ sqlite3 \ libpq-dev \ default-libmysqlclient-dev \ + build-essential \ + pkg-config \ && rm -rf /var/lib/apt/lists/* \ && python${PYTHON_VERSION} -m pip install --upgrade pip \ && python${PYTHON_VERSION} -m pip install --upgrade pipx \ @@ -46,6 +48,10 @@ RUN if [ "$USE_TSINGHUA_UBUNTU" = "true" ]; then \ && pipx ensurepath --global \ && pipx install uv --global +# Install Rust toolchain for building lyric-py +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" + WORKDIR /app # Create a virtual environment ENV VIRTUAL_ENV=/app/.venv