Spaces:
Sleeping
Sleeping
File size: 855 Bytes
7f3959e 44950d8 4dd0794 d04a4f0 9406c44 e4f4d36 0f21a9e f8348c2 69ef3ba 0f21a9e 148b47a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM lfoppiano/grobid-superconductors:0.5.4
USER root
WORKDIR /opt/grobid
RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp/
RUN chmod 777 /opt/grobid/grobid-home/tmp/
RUN chmod -R uog+rw /data/db
COPY --chown=lfoppiano config.yml grobid-superconductors/resources/config/config.yml
# RUN sed -i '/#Docker-ignore-log-start/,/#Docker-ignore-log-end/d' grobid-superconductors/config.yml
# RUN sed -i 's/linkingModuleUrl:.*/linkingModuleUrl: ${LINKING_MODULE_URL:- https:\/\/lfoppiano-grobid-superconductors-tools.hf.space}/g' grobid-superconductors/config.yml
# RUN sed -i 's/classResolverUrl:.*/classResolverUrl: ${LINKING_MODULE_URL:- https:\/\/lfoppiano-grobid-superconductors-tools.hf.space}/g' grobid-superconductors/config.yml
CMD ["./grobid-superconductors/bin/grobid-superconductors", "server", "grobid-superconductors/resources/config/config.yml"] |