diff --git a/Dockerfile b/Dockerfile index 3217fe39..3c8d9f30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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/ diff --git a/resources/config/config-docker.yml b/resources/config/config-docker.yml index f9d0c3fb..336206dc 100755 --- a/resources/config/config-docker.yml +++ b/resources/config/config-docker.yml @@ -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: @@ -146,6 +146,4 @@ logging: appenders: - type: console threshold: INFO - -version: 2 -timeZone: UTC + timeZone: UTC \ No newline at end of file