Skip to content

Commit

Permalink
slim docker image by removing useless native binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Mar 19, 2021
1 parent e9189e3 commit 14fe601
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile.crf
Expand Up @@ -35,6 +35,14 @@ COPY grobid-core/ ./grobid-core/
COPY grobid-service/ ./grobid-service/
COPY grobid-trainer/ ./grobid-trainer/

# cleaning unused native libraries before packaging
RUN rm -rf grobid-home/pdf2xml/lin-32
RUN rm -rf grobid-home/pdf2xml/mac-64
RUN rm -rf grobid-home/pdf2xml/win-*
RUN rm -rf grobid-home/lib/lin-32
RUN rm -rf grobid-home/lib/win-*
RUN rm -rf grobid-home/lib/mac-64

RUN ./gradlew clean assemble --no-daemon --info --stacktrace

WORKDIR /opt/grobid
Expand Down

0 comments on commit 14fe601

Please sign in to comment.