I have a 4 lines dockerfile. The first 3 commands work as expected. But I get an error on the 4th line.
FROM elasticsearch
RUN wget https://dumps.wikimedia.org/other/cirrussearch/20160215/emlwiki-20160215-cirrussearch-content.json.gz
RUN gunzip emlwiki-20160215-cirrussearch-content.json.gz
RUN curl -s -XPOST localhost:9200/wikipedia_content/somelan/_bulk --data-binary @emlwiki-20160215-cirrussearch-content.json
How do I execute curl command in dockerfile?