librespot-java icon indicating copy to clipboard operation
librespot-java copied to clipboard

example Dockerfile for building librespot-java

Open tagdara opened this issue 1 year ago • 2 comments

There are a few folks, including myself, who are trying to repair librespot-java but don't have much Java experience or a Java development environment.

This is the Dockerfile I've been using to build the necessary app-xxx.jar file.

After building, to extract it you can do something like:

container_id=$(docker create "librespot-java")
docker cp "$container_id:/app/build/*.jar" .
docker rm "$container_id"

Hopefully this helps anyone who is looking to work on contributions.

tagdara avatar Nov 11 '23 18:11 tagdara

Thank you, but I think you should consider using the maven docker image directly to cleanup the Dockerfile a bit.

devgianlu avatar Nov 11 '23 19:11 devgianlu

I believe I initially tried, but it was using a newer or incompatible version of the JDK and was outputting errors I did not know how to resolve. I will give it another try later this weekend to see if I can track down why I went the 'hard' route.

tagdara avatar Nov 11 '23 19:11 tagdara