fixed /srv owner bug for basex

This commit is contained in:
2022-01-20 16:36:57 +01:00
parent 0065009a28
commit c14b7ab8af
3 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -11,6 +11,6 @@ USER root
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
# RUN chown -R basex:basex /usr/local/bin/gdp-entrypoint.sh
# # RUN ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
# RUN chown -R basex:basex /srv/basex
USER basex
RUN chown -R basex:basex /srv
# USER basex
CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]
+2
View File
@@ -4,6 +4,8 @@
id
ls -ls / | grep srv
echo "Creating GDP BaseX db"
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()})"
# , 'serializer': 'indent=no'