appdev-projects / rails-7-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce docker image size

bpurinton opened this issue · comments

Related to https://github.com/appdev-lessons/codespaces-setup/issues/3

Students (and teachers) are running into Codespace storage limits because of the pretty huge size of the Docker image produced by the appdev.Dockerfile.

@jelaniwoods IIRC you researched reducing the size awhile ago, but I can't find the notes on this. I'm wondering if we can revisit this and find a way to slim it down from its current size (1.3 GB compressed on Dockerhub, and 3.87 GB when a Codespace is built on it).

I'm not super familiar all of the contents of the Dockerfile and if we can possibly reduce some things in it. If you have any remaining notes or resources to point me towards for optimization that would be great.

@jelaniwoods, maybe this discussion is better had on the linked PR where I started to remove things / reduce the size.