Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example Dockerfile for building librespot-java #780

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tagdara
Copy link
Contributor

@tagdara tagdara commented Nov 11, 2023

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 tagdara mentioned this pull request Nov 11, 2023
@devgianlu
Copy link
Member

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

@tagdara
Copy link
Contributor Author

tagdara commented Nov 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants