Spoolman icon indicating copy to clipboard operation
Spoolman copied to clipboard

Dockerfile size optimization

Open Shadowsith opened this issue 6 months ago • 2 comments

I installed Spoolman using the official Docker package. I was surprised that it’s over 1 GB in size, which I find quite large for a small web application.

Wouldn’t it be possible to switch the python-runner and possibly the builder to python:3.12-bookworm-slim or python:3.12-alpine?

Shadowsith avatar Aug 20 '25 08:08 Shadowsith

I used to run with alpine but its not worth it with all the compatibility issues it causes. Is the 1GB a problem for you?

Donkie avatar Aug 20 '25 08:08 Donkie

Not really, only some idea to optimize it a bit. I may try to use bookworm-slim for building/running Spoolman and if it works well I'll create a pull request.

Shadowsith avatar Aug 20 '25 10:08 Shadowsith