comunica / jQuery-Widget.js

🖼 A jQuery widget to query heterogeneous interfaces using Comunica SPARQL
http://query.linkeddatafragments.org/
MIT License
18 stars 35 forks source link

Edit Dockerfile to use multi stage build and nginx #61

Closed vemonet closed 4 years ago

vemonet commented 4 years ago

I faced issues trying to run the current Dockerfile:

So I wrote a 2 stages build:

Settings and queries can still be passed at runtime by sharing the queries.json file as volume to /usr/share/nginx/html/queries.json inside the container!

docker run -v $(pwd)/queries.json:/usr/share/nginx/html/queries.json -p 3000:80 -it --rm comunica-sparql-widget

Instructions for Docker have been added to the README

Thanks a lot for this cool widget!

rubensworks commented 4 years ago

Ah, I wasn't aware the Dockerfile was in fact broken. Thanks a lot for this!