itzg / docker-minecraft-server

Docker image that provides a Minecraft Server that will automatically download selected version at startup
https://docker-minecraft-server.readthedocs.io/
Apache License 2.0
9.56k stars 1.56k forks source link

Modernize custom server jar file naming logic #3056

Open itzg opened 2 months ago

itzg commented 2 months ago

Rather than just derive the custom server jar name from the given URL path it should use mc-image-helper's get operation to output to /data directory and derive filename from attachment filename in content disposition header.

Could also accept a CUSTOM_JAR_NAME variable to further customize.

Asked about in Discord