Skip to content

Commit 6f73a9d

Browse files
update Dockerfile to optimize microdnf commands to include future security fixes (#917)
* update Dockerfile to optimize microdnf commands to include future security fixes * add changelog
1 parent ae4f166 commit 6f73a9d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changelog/917.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:security
2+
Add microdnf upgrade in dockerfile to include future security fixes
3+
```

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ LABEL name=${BIN_NAME}\
212212

213213
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt
214214

215-
RUN microdnf install -y shadow-utils
215+
RUN microdnf update -y && \
216+
microdnf install -y shadow-utils && \
217+
microdnf clean all
216218

217219
# Create a non-root user to run the software.
218220
RUN groupadd --gid 1000 $PRODUCT_NAME && \

0 commit comments

Comments
 (0)