Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 585bb80

Browse files
Lukas FischerZero3141
Lukas Fischer
authored andcommitted
#349 Use node 18 in example Dockerfile
We upgraded our images to node 18 in secureCodeBox/secureCodeBox#1853, this example file should mirror that. Signed-off-by: Lukas Fischer <[email protected]>
1 parent 09bcee2 commit 585bb80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/contributing/integrating-a-hook/dockerfile.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ The Dockerfile for a hook looks like the following.
1111
If you use the provided *hook-sdk*, you won't need to apply any changes to it.
1212

1313
```Dockerfile
14+
ARG namespace
1415
ARG baseImageTag
15-
FROM node:12-alpine as build
16+
FROM node:18-alpine as build
1617
RUN mkdir -p /home/app
1718
WORKDIR /home/app
1819
COPY package.json package-lock.json ./
1920
RUN npm ci --production
2021

21-
FROM securecodebox/hook-sdk-nodejs:${baseImageTag:-latest}
22+
FROM ${namespace:-securecodebox}/hook-sdk-nodejs:${baseImageTag:-latest}
2223
WORKDIR /home/app/hook-wrapper/hook/
2324
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
2425
COPY --chown=app:app ./hook.js ./hook.js

0 commit comments

Comments
 (0)