@unito/integration-cli 0.62.11 → 0.62.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,6 @@ COPY . .
|
|
|
12
12
|
|
|
13
13
|
RUN --mount=type=secret,id=npmrc,target=.npmrc npm --no-audit --no-fund ci
|
|
14
14
|
|
|
15
|
-
RUN npm install
|
|
16
15
|
RUN npm run compile
|
|
17
16
|
|
|
18
17
|
#
|
|
@@ -21,6 +20,9 @@ RUN npm run compile
|
|
|
21
20
|
|
|
22
21
|
FROM --platform=$TARGETPLATFORM public.ecr.aws/docker/library/node:jod-alpine as runtime
|
|
23
22
|
|
|
23
|
+
# Create non-root user and group
|
|
24
|
+
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
|
25
|
+
|
|
24
26
|
WORKDIR /app
|
|
25
27
|
|
|
26
28
|
COPY --from=build \
|
|
@@ -32,7 +34,11 @@ COPY --from=build \
|
|
|
32
34
|
|
|
33
35
|
RUN --mount=type=secret,id=npmrc,target=.npmrc npm --no-audit --no-fund ci --omit=dev
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
# Change ownership of the app directory to the non-root user
|
|
38
|
+
RUN chown -R appuser:appgroup /app
|
|
39
|
+
|
|
40
|
+
# Switch to non-root user
|
|
41
|
+
USER appuser
|
|
36
42
|
|
|
37
43
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
|
38
44
|
CMD ["node", "./src/index.js"]
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"email": "hello@unito.io"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": ">=
|
|
22
|
+
"node": ">=22"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@unito/integration-sdk": "^2.x"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@eslint/js": "9.x",
|
|
29
29
|
"@types/eslint__js": "8.x",
|
|
30
|
-
"@types/node": "
|
|
30
|
+
"@types/node": "22.x",
|
|
31
31
|
"eslint": "9.x",
|
|
32
32
|
"prettier": "3.x",
|
|
33
33
|
"tsx": "4.x",
|
package/oclif.manifest.json
CHANGED