Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Apr 4, 2024
1 parent 6093175 commit 110bf98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN ./gradlew clean assemble -x shadowJar --no-daemon --stacktrace --info \
&& ./gradlew downloadTransformers --no-daemon --info --stacktrace

RUN rm -f /opt/grobid-source/grobid-home/models/*.zip \
&& rm -rf /opt/grobid-source/grobid-home/models/*with_ELMo \
&& rm -rf /opt/grobid-source/grobid-home/models/*-with_ELMo \
&& rm -rf /opt/grobid-source/grobid-home/models/entityLinker* \
&& rm -rf superconductors-mattpuscibert-BERT_CRF \
&& rm -rf ./grobid-superconductors_source/.git
Expand All @@ -77,8 +77,10 @@ ENV LANG C.UTF-8
WORKDIR /opt/grobid

RUN rm -rf /opt/grobid/grobid-quantities \
&& rm -rf /opt/grobid/resources/* \
&& mkdir -p /opt/grobid/grobid-superconductors
&& rm /opt/grobid/resources \
&& mkdir -p /opt/grobid/grobid-superconductors \
&& rm -rf /opt/grobid/grobid-home/models/*.-with_ELMo \
&& rm -rf /opt/grobid/grobid-service

COPY --from=builder /opt/grobid-source/grobid-home/models ./grobid-home/models
COPY --from=builder /opt/grobid-source/grobid-superconductors ./grobid-superconductors/
Expand Down
8 changes: 3 additions & 5 deletions resources/config/config-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ models:

server:
type: custom
idleTimeout: 120 seconds
applicationConnectors:
- type: http
port: 8072
idleTimeout: 120 seconds
adminConnectors:
- type: http
port: 8073
registerDefaultExceptionMappers: false

logging:
level: DEBUG
level: WARN

# Logger-specific levels.
loggers:
Expand All @@ -146,6 +146,4 @@ logging:
appenders:
- type: console
threshold: INFO

version: 2
timeZone: UTC
timeZone: UTC

0 comments on commit 110bf98

Please sign in to comment.