Skip to content

Commit e6d8c97

Browse files
committed
update spacy
1 parent af65c81 commit e6d8c97

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

label_studio_ml/examples/spacy/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ RUN --mount=type=cache,target="/var/cache/apt",sharing=locked \
2121
apt-get update; \
2222
apt-get upgrade -y; \
2323
apt install --no-install-recommends -y \
24-
git; \
24+
git \
25+
build-essential \
26+
gcc \
27+
g++; \
2528
apt-get autoremove -y
2629

2730
# install base requirements
@@ -32,7 +35,9 @@ RUN --mount=type=cache,target=${PIP_CACHE_DIR},sharing=locked \
3235
# install custom requirements
3336
COPY requirements.txt .
3437
RUN --mount=type=cache,target=${PIP_CACHE_DIR},sharing=locked \
35-
pip install -r requirements.txt
38+
pip install -r requirements.txt && \
39+
apt-get purge -y build-essential gcc g++ && \
40+
apt-get autoremove -y
3641

3742
# install test requirements if needed
3843
COPY requirements-test.txt .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gunicorn==23.0.0
22
spacy~=3.6
33
label-studio-ml @ git+https://github.com/HumanSignal/label-studio-ml-backend.git@master
4-
numpy~=1.26
4+
numpy>=2,<2.3.0
55

66

0 commit comments

Comments
 (0)