mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
24 lines
726 B
Docker
24 lines
726 B
Docker
FROM java:8
|
|
|
|
MAINTAINER Timo Pagel <dependencycheckmaintainer@timo-pagel.de>
|
|
|
|
RUN wget -O /tmp/current.txt http://jeremylong.github.io/DependencyCheck/current.txt && \
|
|
current=$(cat /tmp/current.txt) && \
|
|
wget https://dl.bintray.com/jeremy-long/owasp/dependency-check-$current-release.zip && \
|
|
unzip dependency-check-$current-release.zip && \
|
|
mv dependency-check /usr/share/
|
|
|
|
RUN useradd -ms /bin/bash dockeruser && \
|
|
chown -R dockeruser:dockeruser /usr/share/dependency-check && \
|
|
mkdir /report && \
|
|
chown -R dockeruser:dockeruser /report
|
|
|
|
USER dockeruser
|
|
|
|
VOLUME ["/src" "/usr/share/dependency-check/data" "/report"]
|
|
|
|
WORKDIR /report
|
|
|
|
CMD ["--help"]
|
|
ENTRYPOINT ["/usr/share/dependency-check/bin/dependency-check.sh"]
|