Dockerfile 788 B

12345678910111213141516
  1. # FROM basex/basexhttp:9.4.6
  2. FROM basex/basexhttp:latest
  3. # COPY ./bashrc /srv/.bashrc
  4. # COPY ./inputrc /srv/.inputrc
  5. # RUN basex "db:create('gdp','/srv/basex/src/gdp.tei.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
  6. COPY ./gdp-entrypoint.sh /usr/local/bin
  7. USER root
  8. RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
  9. # RUN chown -R basex:basex /usr/local/bin/gdp-entrypoint.sh
  10. # # RUN ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
  11. RUN chown -R basex:basex /srv
  12. # USER basex
  13. CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]