@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
- RUN npm install --omit=dev
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": ">=20"
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": "^22.13.5",
30
+ "@types/node": "22.x",
31
31
  "eslint": "9.x",
32
32
  "prettier": "3.x",
33
33
  "tsx": "4.x",
@@ -18,7 +18,6 @@
18
18
  "pretty": true,
19
19
  "moduleResolution": "NodeNext",
20
20
  "rootDir": ".",
21
- "skipLibCheck": true,
22
21
  "sourceMap": true,
23
22
  "strict": true,
24
23
  "strictFunctionTypes": true,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.62.11",
2
+ "version": "0.62.12",
3
3
  "commands": {
4
4
  "activity": {
5
5
  "id": "activity",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-cli",
3
- "version": "0.62.11",
3
+ "version": "0.62.12",
4
4
  "description": "Integration CLI",
5
5
  "bin": {
6
6
  "integration-cli": "./bin/run"