Commit 6891b4e
## 🎫 Ticket
https://jira.cms.gov/browse/BCDA-9583
[related ssas PR](CMSgov/bcda-ssas-app#269)
## 🛠 Changes
<!-- What was added, updated, or removed in this PR? -->
- remove caching of `apk upgrade` in dockerfiles
## ℹ️ Context
<!-- Why were these changes made? Add background context suitable for a
non-technical audience. -->
The update/upgrade step should not be cached in order to conform with
[CMS Hybrid Cloud dockerfile
recommendations.](https://cloud.cms.gov/docker-container-security/#docker-container-scanning-and-remediation)
> When adding the update instruction, ensure that the --no-cache flag is
used during the docker build process to avoid using cached layers.
Otherwise, when you build any image later using the same instruction,
this will cause the previously cached update layer to be used,
potentially preventing any fresh updates from being applied to later
builds.
<!-- If any of the following security implications apply, this PR must
not be merged without Stephen Walter's approval. Explain in this section
and add @SJWalter11 as a reviewer.
- Adds a new software dependency or dependencies.
- Modifies or invalidates one or more of our security controls.
- Stores or transmits data that was not stored or transmitted before.
- Requires additional review of security implications for other reasons.
-->
## 🧪 Validation
<!-- How were the changes verified? Did you fully test the acceptance
criteria in the ticket? Provide reproducible testing instructions and
screenshots if applicable. -->
Tested locally
---------
Co-authored-by: Parwinder Bhagat <Parwinder.Bhagat@e14s.com>
1 parent fece9f4 commit 6891b4e
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments