swagger-api / swagger-api/swagger-codegen

General Dockerfile Cleanup

Open
#6,835 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.