mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 17:19:30 +01:00
Refactor Dockerfile for readability.
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -2,12 +2,20 @@ FROM java:8
|
|||||||
|
|
||||||
MAINTAINER Timo Pagel <dependencycheckmaintainer@timo-pagel.de>
|
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 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
|
||||||
|
|
||||||
RUN useradd -ms /bin/bash dockeruser && chown -R dockeruser:dockeruser /usr/share/dependency-check && mkdir /report && chown -R dockeruser:dockeruser /report
|
|
||||||
USER dockeruser
|
USER dockeruser
|
||||||
|
|
||||||
VOLUME "/src /usr/share/dependency-check/data /report"
|
VOLUME ["/src" "/usr/share/dependency-check/data" "/report"]
|
||||||
|
|
||||||
WORKDIR /report
|
WORKDIR /report
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user