Error in docker compose

Hi everyone,

I´m trying to get my instance of openrouteservice off the ground, but as i´m a newbie to a lot of the tools used it’s a little bit confusing. I followed the guide in github but the docker compose fails every time on step 10/13. This is the Error message that i get:

ERROR: Service ‘ors-app’ failed to build: The command ‘/bin/sh -c wget -q -O /tmp/tomcat.tar.gz && cd /tmp && tar xvfz tomcat.tar.gz && mkdir /usr/local/tomcat /ors-conf && cp -R /tmp/apache-tomcat-8.5.39/* /usr/local/tomcat/ && apt-get update -qq && apt-get install -qq -y locales nano maven moreutils jq && locale-gen en_US.UTF-8 && cp /ors-core/openrouteservice/src/main/resources/app.config.sample /ors-core/openrouteservice/src/main/resources/app.config && jq ‘[0] = “data/osm_file.pbf”’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘ = “data/elevation_cache”’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘ = “data/graphs”’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘ = 1’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘del([1,2,3,4,5,6,7,8])’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config’ returned a non-zero code: 4

I’ve tried looking at other posts in the forum, but i cannot see anyone with the same problem as I.

Thanks to everyone.


I forgot to add the docker compose file that I’m using.

version: '2.4'
	container_name: ors-app
  	- 8080:8080
  	- 9001:9001
	image: openrouteservice/openrouteservice:latest
  	context: ../
    	APP_CONFIG: ./openrouteservice/src/main/resources/app.config.sample
    	OSM_FILE: ./spain-latest.osm.pbf
  	- ./graphs:/ors-core/data/graphs
  	- ./elevation_cache:/ors-core/data/elevation_cache
  	- ./logs/ors:/var/log/ors
  	- ./logs/tomcat:/usr/local/tomcat/logs
  	- ./conf:/ors-conf
  	- ./spain-latest.osm.pbf:/ors-core/data/osm_file.pbf
  	- BUILD_GRAPHS=False  # Forces the container to rebuild the graphs, e.g. when PBF is changed
  	- "JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
  	- " -Djava.rmi.server.hostname=localhost"