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

webp missing from DockerHub images #3035

Closed gaaat98 closed 2 months ago

gaaat98 commented 3 months ago

Describe the problem

In theory #2066 should have added the webp packages used by Dynmap for generating webp tiles, however it appears that for some reason the packages are not installed on the images downloaded via docker pull itzg/minecraft-server After running the container, if I execute sudo docker exec -it mc webp the result is OCI runtime exec failed: exec failed: unable to start container process: exec: "webp": executable file not found in $PATH: unknown.

I tested this both on Unraid and Windows 11+WSL, am I doing something wrong?

Container definition

docker run  -e EULA=TRUE -d -p 25565:25565 --name mc -v /tmp/mc-data:/data itzg/minecraft-server

Container logs

2024-08-08 11:10:00 [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 2 1000 1000 4096 Aug  8 09:08 /data'
2024-08-08 11:10:00 [init] Resolving type given VANILLA
2024-08-08 11:10:03 [init] Resolved version given LATEST into 1.21
2024-08-08 11:10:06 [init] Downloading 1.21 server...
2024-08-08 11:10:12 [init] Creating server properties in /data/server.properties
2024-08-08 11:10:12 [init] Disabling whitelist functionality
2024-08-08 11:10:13 [mc-image-helper] 09:10:13.052 INFO  : Created/updated 4 properties in /data/server.properties
2024-08-08 11:10:13 [init] Setting initial memory to 1G and max to 1G
2024-08-08 11:10:13 [init] Starting the Minecraft server...
itzg commented 3 months ago

I removed webp since it added 200-300 MB to the image size. Please use an older image tag until I figure if/how I want to support that package. You're also welcome to build your own image that adds that package.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

itzg commented 2 months ago

With #3060 added ability to customize image build with extra packages https://docker-minecraft-server.readthedocs.io/en/latest/misc/contributing/building/#installing-extra-packages