File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 33FROM ghcr.io/google/tsunami-scanner-devel:latest AS build
44
55# Compile the callback server
6-
76WORKDIR /usr/repos/tsunami-security-scanner-callback-server
87COPY . .
98RUN gradle shadowJar
10- RUN mkdir /usr/tsunami
9+ RUN mkdir -p /usr/tsunami
1110RUN find . -name 'tcs-main-*.jar' -exec cp {} /usr/tsunami/tsunami-tcs.jar \; \
1211 && cp tcs_config.yaml /usr/tsunami/tcs_config.yaml
1312
13+ # Compile proto definitions for Python plugins
14+ RUN mkdir -p /usr/tsunami/py_server
15+ RUN python3 -m grpc_tools.protoc \
16+ -I/usr/repos/tsunami-security-scanner-callback-server/proto \
17+ --python_out=/usr/tsunami/py_server/ \
18+ --grpc_python_out=/usr/tsunami/py_server/ \
19+ /usr/repos/tsunami-security-scanner-callback-server/proto/*.proto
20+
1421# # Stage 2: Release
1522
1623FROM scratch AS release
1724
1825# Copy previous build results
1926COPY --from=build /usr/tsunami/tsunami-tcs.jar /usr/tsunami/
2027COPY --from=build /usr/tsunami/tcs_config.yaml /usr/tsunami/
28+ COPY --from=build /usr/tsunami/py_server/ /usr/tsunami/py_server
You can’t perform that action at this time.
0 commit comments