added ruby and mono (see issue #953)

This commit is contained in:
Jeremy Long
2017-10-24 06:53:15 -04:00
parent 714b3d29b9
commit 3a07795e39

View File

@@ -7,8 +7,11 @@ 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 && \
gem cleanup
RUN wget -O /tmp/current.txt ${version_url} && \
version=$(cat /tmp/current.txt) && \ version=$(cat /tmp/current.txt) && \
file="dependency-check-${version}-release.zip" && \ file="dependency-check-${version}-release.zip" && \
wget "$download_url/$file" && \ wget "$download_url/$file" && \
@@ -21,7 +24,7 @@ RUN apt-get update && \
chown -R ${user}:${user} /report && \ chown -R ${user}:${user} /report && \
apt-get remove --purge -y wget && \ apt-get remove --purge -y wget && \
apt-get autoremove -y && \ apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/* /tmp/*
USER ${user} USER ${user}