Skip to content

Conversation

@featheredtoast
Copy link
Member

slim image by building nginx and imagemagick separately. Copy results to final image.

build jhead from source with no dependencies

remove optipng, and pngcrush as these are disabled workers in discourse image_optim

separate out discourse_web and discourse_release for no database web-only images.

minimize layers by merging RUN commands

prefer &&\; over ;\ for failing early on failing commands

Re-orders targets to:
discourse_dependencies (install all common dependencies)
discourse_slim (clone discourse)
discourse_web (bundle install)
discourse_release (install redis+postgres)

Allows for us to target another image as discourse_web to remove postgres+redis from the image. Drops compressed size of slim to 494.22MB.

slim image by building nginx and imagemagick separately

build jhead from source with no dependencies

remove optipng, and pngcrush as these are disabled workers in discourse image_optim

separate out discourse_web and discourse_release for no database web-only images.

minimize layers by merging RUN commands

prefer `&&\;` over `;\` for failing early on failing commands
@featheredtoast
Copy link
Member Author

will re-open this work in chunks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants