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

Commit 37ce445

Browse files
committed
#33 Correct Docker Build to use typescript source instead of locally build js file
1 parent b5438b4 commit 37ce445

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hooks/declarative-subsequent-scans/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ RUN mkdir -p /home/app
1010
WORKDIR /home/app
1111
COPY package.json package-lock.json ./
1212
RUN npm ci
13-
COPY hook.ts scan-helpers.js ./
13+
COPY hook.ts scan-helpers.ts ./
1414
RUN npm run build
1515

1616
FROM scbexperimental/hook-sdk-nodejs:${baseImageTag:-latest}
1717
WORKDIR /home/app/hook-wrapper/hook/
18-
COPY --chown=app:app scan-helpers.js ./
19-
COPY --from=build --chown=app:app /home/app/hook.js ./
2018
COPY --from=install --chown=app:app /home/app/node_modules/ ./node_modules/
19+
COPY --from=build --chown=app:app /home/app/hook.js /home/app/scan-helpers.js ./

0 commit comments

Comments
 (0)