Update Dockerfile to install Rust

Rust is required to build sudachipy and pyopenjtalk-plus
This commit is contained in:
Rodrigo Iglesias 2025-04-17 16:07:15 +02:00 committed by GitHub
parent f1fa340494
commit 83325b749d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,10 @@ WORKDIR /app
# Copy dependency files
COPY --chown=appuser:appuser pyproject.toml ./pyproject.toml
# Install Rust (required to build sudachipy and pyopenjtalk-plus)
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/home/appuser/.cargo/bin:$PATH"
# Install dependencies
RUN --mount=type=cache,target=/root/.cache/uv \
uv venv --python 3.10 && \