Skip to content

Commit 1064dd7

Browse files
committed
update download location using HF
1 parent 39c0e43 commit 1064dd7

File tree

8 files changed

+1007
-102
lines changed

8 files changed

+1007
-102
lines changed

Dockerfile.datastet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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
1111

1212
WORKDIR /opt/grobid
1313

@@ -22,12 +22,13 @@ COPY gradle.properties datastet-source/
2222
COPY gradle datastet-source/gradle/
2323
COPY gradlew datastet-source/
2424
#COPY .git datastet-source/.git
25-
#COPY localLibs datastet-source/localLibs
25+
COPY localLibs datastet-source/localLibs
2626

2727
# Preparing models
2828
WORKDIR /opt/grobid/datastet-source
2929
RUN rm -rf /opt/grobid/grobid-home/models/*
3030
RUN ./gradlew clean assemble -x shadowJar --no-daemon --stacktrace --info
31+
RUN git lfs install
3132
RUN ./gradlew installModels --no-daemon --info --stacktrace \
3233
&& rm -f /opt/grobid/grobid-home/models/*.zip
3334

0 commit comments

Comments
 (0)