openresty / openresty/docker-openresty

Smaller image possible?

Open
#55 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1k
Forks
536
Avg merge
1d 32m
Merged PRs (30d)
1

Description

There's a comment in the Xenial Dockerfile:

https://github.com/openresty/docker-openresty/blob/4e12d1e21d1231f323a242ee0c7d7cf10fcc3141/xenial/Dockerfile#L107

I think removing build-essential and make, just prior to the apt-get autoremove should cut the image size by ~100MiB, or ~20%.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in xenial/Dockerfile around line 107 and inspect the package cleanup sequence after the build completes. Test whether removing build-essential and make before apt-get autoremove reduces the resulting image size without breaking the image build. Done means the Xenial image builds successfully and the size reduction is confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile
Domain
build-system, devops
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.