fix security issue: "Arguments in long RUN instructions should be sor… - #4402
Conversation
|
|
||
| RUN apt-get update && apt-get install -y librados2 curl fuse procps iputils-ping strace iproute2 net-tools tcpdump lsof librados-dev libcephfs-dev librbd-dev && \ | ||
| RUN apt-get update && \ | ||
| apt-get install -y curl fuse iproute2 iputils-ping librados2 librados-dev librbd-dev libcephfs-dev lsof net-tools procps strace tcpdump && \ |
Check notice
Code scanning / SonarCloud
Arguments in long RUN instructions should be sorted
There was a problem hiding this comment.
libcephfs-dev librados-dev librados2 librbd-dev
| RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories | ||
| RUN apk --update add fuse alpine-sdk automake autoconf libxml2-dev fuse-dev curl-dev pkgconf | ||
| RUN apk update && \ | ||
| apk add alpine-sdk automake autoconf curl-dev fuse fuse-dev libxml2-dev pkgconf |
Check notice
Code scanning / SonarCloud
Arguments in long RUN instructions should be sorted
There was a problem hiding this comment.
The correct order should be autoconf automake.
| RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories | ||
| RUN apk --update add fuse curl libxml2 openssl libstdc++ libgcc python3 inotify-tools bash coreutils tini && rm -rf /var/cache/apk/* | ||
| RUN apk update && \ | ||
| apk add bash curl coreutils fuse inotify-tools libgcc libstdc++ libxml2 openssl python3 tini && \ |
Check notice
Code scanning / SonarCloud
Arguments in long RUN instructions should be sorted
…ted" Signed-off-by: jiuyu <guotongyu.gty@alibaba-inc.com>
87368d9 to
0cb472e
Compare
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheyang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |



fix
Arguments in long RUN instructions should be sorted