Skip to content

Commit

Permalink
Merge pull request google#89 from aminvakil:dockerfile_improvements
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 599170544
Change-Id: I8c19251f995e2062fdf3a17ee70d7e22555da344
  • Loading branch information
copybara-github committed Jan 17, 2024
2 parents 5828832 + 824a5df commit 4844fa9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ FROM adoptopenjdk/openjdk13:debianslim

# Install dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates
&& apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/share/doc && rm -rf /usr/share/man \
&& apt-get clean

WORKDIR /usr/tsunami/repos

Expand All @@ -21,7 +24,7 @@ RUN mkdir /usr/tsunami/plugins \
WORKDIR /usr/repos/tsunami-security-scanner
COPY . .
RUN ./gradlew shadowJar \
&& cp $(find "./" -name 'tsunami-main-*-cli.jar') /usr/tsunami/tsunami.jar \
&& cp "$(find "./" -name "tsunami-main-*-cli.jar")" /usr/tsunami/tsunami.jar \
&& cp ./tsunami.yaml /usr/tsunami

# Stage 2: Release
Expand All @@ -30,6 +33,8 @@ FROM adoptopenjdk/openjdk13:debianslim-jre
# Install dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends nmap ncrack ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/share/doc && rm -rf /usr/share/man \
&& apt-get clean \
&& mkdir logs/

Expand Down

0 comments on commit 4844fa9

Please sign in to comment.