Skip to content

Commit 442f4fe

Browse files
authored
Merge pull request #44 from lfoppiano/feature/update-models-locations
Update build and docker image to fetch models from huggingface
2 parents 24fc6d8 + f025d1b commit 442f4fe

8 files changed

Lines changed: 992 additions & 128 deletions

File tree

Dockerfile.software

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ FROM openjdk:17-jdk-slim as builder
77
USER root
88

99
RUN apt-get update && \
10-
apt-get -y --no-install-recommends install apt-utils libxml2 git unzip wget
10+
apt-get -y --no-install-recommends install apt-utils libxml2 git-lfs unzip wget
11+
1112

1213
WORKDIR /opt/grobid
1314

@@ -27,7 +28,8 @@ COPY localLibs software-mentions-source/localLibs
2728
WORKDIR /opt/grobid/software-mentions-source
2829
RUN rm -rf /opt/grobid/grobid-home/models/*
2930
RUN ./gradlew clean assemble -x shadowJar --no-daemon --stacktrace --info
30-
RUN ./gradlew copyModels installModels --no-daemon --info --stacktrace \
31+
RUN git lfs install
32+
RUN ./gradlew installModels --no-daemon --info --stacktrace \
3133
&& rm -f /opt/grobid/grobid-home/models/*.zip
3234

3335
# Preparing distribution

0 commit comments

Comments
 (0)