Skip to content

Conversation

greninja517
Copy link

What type of PR is this? (check all applicable)

  • Refactor
  • Upgrades
  • Documentation Update

Description

This PR enhances the current prod.dockerfile to use multi-stage build and serve the static build using nginx server. The image size was reduced from 957 MB to 107 MB. For serving the website correctly using nginx, a new nginx.conf is also introduced with minimal yet proper functional configuration.

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Docker Image Size:

docker images
REPOSITORY                                                           TAG                    IMAGE ID       CREATED          SIZE
docs-multi-stage                                                     v6                     199dc439783c   36 minutes ago   107MB
docs-single-stage                                                    v1                     eba4e5bb637a   6 hours ago      957MB

Website Demo:

  • RUN this command after Image Build:
docker run --rm -p 80:80 docs-multi-stage:v6
  • Access the website at http://localhost:80/

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Semantic HTML implemented?
  • Keyboard operability supported?
  • Color contrast tested?

…h nginx with custom configuration

Signed-off-by: anjal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant