charon icon indicating copy to clipboard operation
charon copied to clipboard

dockerfile: optimize Dockerfile

Open No0key opened this issue 1 year ago • 1 comments

Hello!

This PR optimizes the Dockerfile.

Changes include:

  • Combined RUN commands to reduce the number of layers
  • Cached Go dependencies to speed up build times
  • Cleaned up unnecessary apt files to reduce image size
  • Consolidated user creation and permission setting commands

Category: refactor

Reduced image size from 370MB to 302MB

No0key avatar Sep 12 '24 15:09 No0key

@KaloyanTanev can you rerun tests? title name was fixed

No0key avatar Oct 10 '24 15:10 No0key

I am good with this PR, will delegate final approval and merge to @KaloyanTanev

pinebit avatar Oct 11 '24 04:10 pinebit