mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-29 05:12:14 +02:00
added ruby and mono (see issue #953)
This commit is contained in:
35
Dockerfile
35
Dockerfile
@@ -6,22 +6,25 @@ ENV user=dependencycheck
|
|||||||
ENV version_url=https://jeremylong.github.io/DependencyCheck/current.txt
|
ENV version_url=https://jeremylong.github.io/DependencyCheck/current.txt
|
||||||
ENV download_url=https://dl.bintray.com/jeremy-long/owasp
|
ENV download_url=https://dl.bintray.com/jeremy-long/owasp
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y wget && \
|
apt-get install -y --no-install-recommends wget ruby mono-runtime && \
|
||||||
wget -O /tmp/current.txt ${version_url} && \
|
gem install bundle-audit && \
|
||||||
version=$(cat /tmp/current.txt) && \
|
gem cleanup
|
||||||
file="dependency-check-${version}-release.zip" && \
|
|
||||||
wget "$download_url/$file" && \
|
RUN wget -O /tmp/current.txt ${version_url} && \
|
||||||
unzip ${file} && \
|
version=$(cat /tmp/current.txt) && \
|
||||||
rm ${file} && \
|
file="dependency-check-${version}-release.zip" && \
|
||||||
mv dependency-check /usr/share/ && \
|
wget "$download_url/$file" && \
|
||||||
useradd -ms /bin/bash ${user} && \
|
unzip ${file} && \
|
||||||
chown -R ${user}:${user} /usr/share/dependency-check && \
|
rm ${file} && \
|
||||||
mkdir /report && \
|
mv dependency-check /usr/share/ && \
|
||||||
chown -R ${user}:${user} /report && \
|
useradd -ms /bin/bash ${user} && \
|
||||||
apt-get remove --purge -y wget && \
|
chown -R ${user}:${user} /usr/share/dependency-check && \
|
||||||
apt-get autoremove -y && \
|
mkdir /report && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
chown -R ${user}:${user} /report && \
|
||||||
|
apt-get remove --purge -y wget && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /tmp/*
|
||||||
|
|
||||||
USER ${user}
|
USER ${user}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user