chore: Add lyric build env

This commit is contained in:
Fangyin Cheng
2025-03-11 17:08:24 +08:00
parent e26d265017
commit 9c642b2f6c

View File

@@ -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