1- FROM mend/base-repo-scanner:25.7 .1.1-full
1+ FROM mend/base-repo-scanner:25.8 .1.1-full
22
33ARG USER_NAME=wss-scanner
44ARG USER_ID=1000
@@ -17,19 +17,17 @@ SHELL ["/bin/bash", "-c"]
1717# RUN ln -s ${USER_HOME}/.local/bin/runinstall ${USER_HOME}/.local/bin/pipenv
1818# RUN ln -s ${USER_HOME}/.local/bin/runinstall ${USER_HOME}/.local/bin/poetry
1919
20- # Download the pre-scan builder and set it in $PATH, can be replaced by:
21- #--build-arg $PSB_URL=URL
22- RUN echo "Downloading PSB version 25.4.1"
23- ARG PSB_URL=https://downloads.mend.io/production/sca/pre-scan-builder/25.4.1/linux_amd64/psb
20+ RUN echo "Downloading PSB version 25.8.1"
21+ ARG PSB_URL=https://downloads.mend.io/production/sca/pre-scan-builder/25.8.1/linux_amd64/psb
2422RUN curl $PSB_URL --create-dirs -o /psb/bin/psb && chmod 0775 -R /psb
2523ENV PATH=$PATH:/psb/bin/
2624
2725# Download the mend sca tool
2826#--build-arg $SCA_TOOL_URL=URL
2927USER 0
30- ARG SCA_TOOL_URL=https://downloads.mend.io/production/sca/sca-wrapper/25.6 .2.1/linux_amd64/sca-wrapper
28+ ARG SCA_TOOL_URL=https://downloads.mend.io/production/sca/sca-wrapper/25.7 .2.1/linux_amd64/sca-wrapper
3129RUN echo "Downloading Mend SCA tool [$SCA_TOOL_URL]"
32- RUN curl $SCA_TOOL_URL --create-dirs -o /sca-wrapper/bin/sca-wrapper && chmod 0777  -R /sca-wrapper
30+ RUN curl $SCA_TOOL_URL --create-dirs -o /sca-wrapper/bin/sca-wrapper && chmod 0775  -R /sca-wrapper
3331ENV MEND_SCA_BIN_DIR=/sca-wrapper/bin
3432ENV PATH=$PATH:$MEND_SCA_BIN_DIR
3533ENV MEND_SCA_SCAN_PRINT_ENGINE_LOGS=true
@@ -46,6 +44,8 @@ ENV PATH=$PATH:/sast/bin
4644### copy folder
4745COPY docker-image-scanner/ /
4846
47+ # Temporarily copying the current Dockerfile to generate the installed-versions.json file.
48+ 
4949RUN chmod 755 /start.sh
5050RUN chgrp -R 0 ${USER_HOME} && chmod -R g=u ${USER_HOME}
5151
@@ -55,7 +55,7 @@ ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
5555### Switch User ###
5656ENV HOME ${USER_HOME}
5757WORKDIR ${USER_HOME}
58- USER ${USER_NAME }
58+ USER ${USER_ID }
5959ARG JAVA_OPTS
6060ENV JAVA_OPTS=${JAVA_OPTS}
6161ENV JDK_JAVA_OPTIONS "--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED"
@@ -64,7 +64,7 @@ EXPOSE 9393
6464
6565ENTRYPOINT ["docker-entrypoint.sh"]
6666# Mend traceability labels
67- LABEL io.mend.image.dockerfile.path=integration-new/github-scanner-parent/scm-packaging/src/assembly-staging/docker/Dockerfile 
67+ LABEL io.mend.image.dockerfile.path=integration-new/github-scanner-parent/scm-packaging/src/assembly-staging/docker/Dockerfilefull 
6868LABEL org.opencontainers.image.source=https://github.com/whitesource/github-scanner
6969
7070CMD ["/start.sh"]
0 commit comments