Containers with Alpine base images are larger than standard images

Our containers are about 1.7gb and are based on these images (built on raspberry pi 3):

  • FROM resin/%%RESIN_MACHINE_NAME%%-python:3.5
  • FROM resin/%%RESIN_MACHINE_NAME%%-golang

We switched to alpine images:

  • FROM resin/%%RESIN_MACHINE_NAME%%-alpine-python:3.5
  • FROM resin/%%RESIN_MACHINE_NAME%%-alpine-golang

And the size of our build grew to 2gb, so about 300mb increase.

The build process is different… we had to adjust for alpine vs. ubuntu, but it seems strange that we wouldn’t have seen any reduction in size, let alone an increase.

Any thoughts out there? I’d be curious to know what the size of the base images vs. the alpine images are, maybe adding it as a column to the table here:



Using the slim images reduced the total image size by about 50%:

  • FROM resin/%%RESIN_MACHINE_NAME%%-python:3.5-slim
  • FROM resin/%%RESIN_MACHINE_NAME%%-golang:1.9-slim


We replied to your paid support ticket, have you been able to check it?

Yes, I think I’m all set - thanks!