File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ # Stage 1: Build phase
2+
3+ FROM ubuntu:latest AS build
4+
5+ # # Dependencies
6+
7+ RUN apt-get update \
8+ && apt-get install -y --no-install-recommends openjdk-21-jdk \
9+ && rm -rf /var/lib/apt/lists/* \
10+ && rm -rf /usr/share/doc && rm -rf /usr/share/man \
11+ && apt-get clean
12+
13+ # Compile the callback server
14+
15+ WORKDIR /usr/repos/tsunami-security-scanner-callback-server
16+ COPY . .
17+ RUN ./gradlew shadowJar
18+ RUN mkdir /usr/tsunami
19+ RUN find . -name 'tcs-main-*.jar' -exec cp {} /usr/tsunami/tsunami-tcs.jar \; \
20+ && cp tcs_config.yaml /usr/tsunami/tcs_config.yaml
21+
22+ # # Stage 2: Release
23+
24+ FROM scratch AS release
25+
26+ # Copy previous build results
27+ COPY --from=build /usr/tsunami/tsunami-tcs.jar /usr/tsunami/
28+ COPY --from=build /usr/tsunami/tcs_config.yaml /usr/tsunami/
You can’t perform that action at this time.
0 commit comments