@boxyhq/saml-jackson 0.2.3-beta.243 → 0.2.3-beta.244

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.
Files changed (2) hide show
  1. package/Dockerfile +7 -5
  2. package/package.json +4 -4
package/Dockerfile CHANGED
@@ -1,11 +1,12 @@
1
1
  # Install dependencies only when needed
2
- FROM node:16.13.1-alpine3.14 AS deps
2
+ FROM node:16.13.1-alpine3.14 AS build
3
3
  # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
4
4
  RUN apk add --no-cache libc6-compat
5
5
  WORKDIR /app
6
6
  COPY src/ src/
7
7
  COPY package.json package-lock.json tsconfig*.json ./
8
- RUN npm ci --only=production
8
+ RUN npm install
9
+ RUN npm run build
9
10
 
10
11
  # Production image, copy all the files and run next
11
12
  FROM node:16.13.1-alpine3.14 AS runner
@@ -17,9 +18,10 @@ ENV NODE_ENV production
17
18
  RUN addgroup -g 1001 -S nodejs
18
19
  RUN adduser -S nodejs -u 1001
19
20
 
20
- COPY --from=deps /app/dist ./dist
21
- COPY --from=deps /app/node_modules ./node_modules
22
- COPY --from=deps /app/package.json ./package.json
21
+ COPY --from=build /app/dist ./dist
22
+ COPY --from=build /app/package.json ./package.json
23
+ COPY --from=build /app/package-lock.json ./package-lock.json
24
+ RUN npm ci --only=production
23
25
 
24
26
  USER nodejs
25
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxyhq/saml-jackson",
3
- "version": "0.2.3-beta.243",
3
+ "version": "0.2.3-beta.244",
4
4
  "license": "Apache 2.0",
5
5
  "description": "SAML 2.0 service",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "scripts": {
19
19
  "build": "tsc -p tsconfig.build.json",
20
- "prepublish": "npm run build",
20
+ "prepublishOnly": "npm run build",
21
21
  "start": "cross-env IDP_ENABLED=true node dist/jackson.js",
22
22
  "dev": "cross-env IDP_ENABLED=true nodemon --config nodemon.json src/jackson.ts",
23
23
  "mongo": "cross-env JACKSON_API_KEYS=secret DB_ENGINE=mongo DB_URL=mongodb://localhost:27017/jackson nodemon --config nodemon.json src/jackson.ts",
@@ -51,7 +51,6 @@
51
51
  "ripemd160": "2.0.2",
52
52
  "thumbprint": "0.0.1",
53
53
  "typeorm": "0.2.41",
54
- "typescript": "4.5.4",
55
54
  "xml-crypto": "2.1.3",
56
55
  "xml2js": "0.4.23",
57
56
  "xmlbuilder": "15.1.1"
@@ -74,7 +73,8 @@
74
73
  "sinon": "12.0.1",
75
74
  "tap": "15.1.5",
76
75
  "ts-node": "10.4.0",
77
- "tsconfig-paths": "3.12.0"
76
+ "tsconfig-paths": "3.12.0",
77
+ "typescript": "4.5.4"
78
78
  },
79
79
  "lint-staged": {
80
80
  "*.{js,ts}": "eslint --cache --fix",