gateway icon indicating copy to clipboard operation
gateway copied to clipboard

Remove redundant apk update calls in Dockerfile

Open PeterDaveHello opened this issue 5 months ago • 7 comments
trafficstars

Description

Remove redundant apk update calls in Dockerfile. The apk upgrade commands already utilize the --no-cache option, making the separate update step superfluous and ensuring the latest packages are used without maintaining a local cache.

Motivation

An additional apk update in Docker image layers increases the image size with no benefits since apk upgrade --no-cache already fetches the latest package information.

Type of Change

  • [x] Refactoring (no functional changes)

How Has This Been Tested?

  • [x] Manual Testing

Checklist

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] My changes generate no new warnings

PeterDaveHello avatar Jun 04 '25 15:06 PeterDaveHello