swagger-api / swagger-api/swagger-codegen
General Dockerfile Cleanup
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
There are some layer optimizations that can be made in order to improve the docker image build time and size. Doing these optimizations are low risk and will decrease build time of the images.
Suggest a fix/enhancement
Reordering of some of the layers to take advantage of build caching and using COPY over ADD in certain areas will decrease the build time.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the repository's Dockerfile and reviewing its layer order and current ADD/COPY usage. Apply the proposed cache and image-size optimizations, then verify that the image still builds successfully and that the relevant build-time or size improvements are measurable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- build-system, devops
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100