-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to alpine base image in Dockerfile #177
Comments
I'm picking up from where @alexlaw528 left off. This change will make the image smaller and reduce the download required to build the image. |
I'm able to reduce the image size to 3xxMB by switching to alpine. However, the erd script doesn't work anymore. It generates a junk image. Considering abandoning image generation for erd, and maybe do it separately on the host or use an online service. Without the erd image generation helpers, the image is 138MB, which is 1/10 the size of the debian-based image. |
The bad png image was caused by the Roboto font being specified in the The problem I'm having is that there's not a good way to automate downloading the font when building the image. I manually downloaded and installed it in the container for testing. Maybe the solution is to choose a font that already exists or is easy to install in alpine. |
I left a message in the django-extensions mailing list but there's no response. I can only assume that Roboto is the designated default font, so I'm checking it into git and installing it into the image at build time so that the erd.png generation can work as before. The final image size is 203MB on my machine. I made a PR. |
A couple things happened in the PR thread. We'll need to add these tasks
|
Overview
The current PD docker image is 1.3GB. We should switch to alpine so that we can reduce the image size.
Action Items
Post Done
Resources/Instructions
The text was updated successfully, but these errors were encountered: