Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 2e2684f

Browse files
committed
#33 Enable to override the base image
1 parent c4f0c57 commit 2e2684f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/declarative-subsequent-scans/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ARG baseImageTag
12
FROM node:12-alpine as install
23
RUN mkdir -p /home/app
34
WORKDIR /home/app
@@ -12,7 +13,7 @@ RUN npm ci
1213
COPY hook.ts scan-helpers.js ./
1314
RUN npm run build
1415

15-
FROM scbexperimental/hook-sdk-nodejs:latest
16+
FROM scbexperimental/hook-sdk-nodejs:${baseImageTag:-latest}
1617
WORKDIR /home/app/hook-wrapper/hook/
1718
COPY --chown=app:app scan-helpers.js ./
1819
COPY --from=build --chown=app:app /home/app/hook.js ./

0 commit comments

Comments
 (0)