You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN mkdir -p printer_data/run printer_data/gcodes printer_data/logs printer_data/config
RUN groupadd klipper --gid 1000 \
&& useradd klipper --uid 1000 --gid klipper \
&& usermod klipper --append --groups dialout \
&& chown -R klipper:klipper /opt/*
Those two simple changes should result in pull size reduction from ~720M to ~350M (for armv7).
I would have liked to created a platform, but I'm using that to try to run klipper on a machine without docker, so I don't have an easy way to test the changes....
The text was updated successfully, but these errors were encountered:
Hi,
There are a couple of issues making
klipper
image significantly larger than it should be:Here you can remove
.git
folder aftergit checkout
. This saves around 80M:prind/docker/klipper/Dockerfile
Lines 9 to 11 in 82675dd
Here you can try using
COPY --chown
instead of a separateCOPY
andRUN chown
. Otherwise all the files are duplicated in a new layer:prind/docker/klipper/Dockerfile
Lines 23 to 30 in 82675dd
Those two simple changes should result in pull size reduction from ~720M to ~350M (for armv7).
I would have liked to created a platform, but I'm using that to try to run klipper on a machine without docker, so I don't have an easy way to test the changes....
The text was updated successfully, but these errors were encountered: