chore: upgrade Rust version and migrate pip commands to uv in Dockerfiles
- Upgraded Rust base image from 1.75 to 1.81 in client.Dockerfile - Replaced python -m pip with uv pip for NER dependency installation in server.Dockerfile - Updated spaCy model download and verification commands to use uv run python
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Tauri Client Build Container
|
||||
# Used for CI builds and development - desktop app typically runs natively
|
||||
|
||||
FROM rust:1.75-bookworm AS rust-base
|
||||
FROM rust:1.81-bookworm AS rust-base
|
||||
|
||||
# Install Node.js 20.x
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
|
||||
@@ -77,11 +77,11 @@ CMD ["sh", "-c", "uv sync --frozen --group dev --all-extras && uv run python scr
|
||||
FROM base AS with-ner
|
||||
|
||||
# Install NER dependencies and download spaCy model
|
||||
RUN python -m pip install -e ".[ner]" \
|
||||
&& python -m spacy download en_core_web_sm
|
||||
RUN uv pip install -e ".[ner]" \
|
||||
&& uv run python -m spacy download en_core_web_sm
|
||||
|
||||
# Verify model is available
|
||||
RUN python -c "import spacy; nlp = spacy.load('en_core_web_sm'); print('NER model loaded successfully')"
|
||||
RUN uv run python -c "import spacy; nlp = spacy.load('en_core_web_sm'); print('NER model loaded successfully')"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Development target (default)
|
||||
|
||||
Reference in New Issue
Block a user