@babblevoice/projectrtp 2.4.0 → 2.4.1

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.
package/.dockerignore ADDED
@@ -0,0 +1,13 @@
1
+
2
+ .git
3
+ .github
4
+ .gitmodules
5
+ .vscode
6
+ .eslintrc.js
7
+ .gitignore
8
+
9
+ Dockerfile
10
+
11
+ node_modules
12
+ libilbc
13
+ out
package/Dockerfile CHANGED
@@ -1,13 +1,13 @@
1
1
 
2
2
  # docker build . -t <your username>/projectrtp
3
3
  # I have tied this to version alpine 3.16 as 3.17 has an exception symbol dynamic linking issue.
4
- FROM node:18-alpine3.16 as builder
4
+ FROM alpine:3.16 as builder
5
5
 
6
6
 
7
7
  WORKDIR /usr/src/
8
8
 
9
9
  RUN apk add --no-cache \
10
- alpine-sdk cmake python3 spandsp-dev tiff-dev gnutls-dev libsrtp-dev cmake boost-dev; \
10
+ alpine-sdk cmake python3 spandsp-dev tiff-dev gnutls-dev libsrtp-dev cmake boost-dev nodejs npm; \
11
11
  npm -g install node-gyp; \
12
12
  wget https://github.com/TimothyGu/libilbc/releases/download/v3.0.4/libilbc-3.0.4.tar.gz; \
13
13
  tar xvzf libilbc-3.0.4.tar.gz; \
@@ -15,15 +15,15 @@ RUN apk add --no-cache \
15
15
  cmake . -DCMAKE_INSTALL_LIBDIR=/lib -DCMAKE_INSTALL_INCLUDEDIR=/usr/include; cmake --build .; cmake --install .;
16
16
 
17
17
  WORKDIR /usr/local/lib/node_modules/@babblevoice/projectrtp/
18
-
19
18
  COPY . .
20
- RUN npm run rebuild
21
19
 
20
+ RUN npm ci --no-optional --production;\
21
+ rm -fr src/build/Release/obj.target
22
22
 
23
- FROM node:18-alpine as app
23
+ FROM alpine:3.16 as app
24
24
 
25
25
  RUN apk add --no-cache \
26
- spandsp tiff gnutls libsrtp libc6-compat openssl ca-certificates
26
+ spandsp tiff gnutls libsrtp libc6-compat openssl ca-certificates nodejs npm
27
27
 
28
28
  COPY --from=builder /usr/local/lib/node_modules/@babblevoice/projectrtp/ /usr/local/lib/node_modules/@babblevoice/projectrtp/
29
29
  COPY --from=builder /lib/libilbc* /lib/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/projectrtp",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A scalable Node addon RTP server",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -33,9 +33,7 @@
33
33
  },
34
34
  "homepage": "https://github.com/tinpotnick/projectrtp#readme",
35
35
  "dependencies": {
36
- "eslint": "^8.29.0",
37
- "jsdoc": "^4.0.0",
38
- "uuid": "^8.3.2"
36
+ "uuid": "^9.0.0"
39
37
  },
40
38
  "keywords": [
41
39
  "RTP",
@@ -49,6 +47,8 @@
49
47
  "@types/mocha": "^10.0.1",
50
48
  "@types/uuid": "^9.0.0",
51
49
  "chai": "^4.3.7",
52
- "mocha": "^10.2.0"
50
+ "mocha": "^10.2.0",
51
+ "eslint": "^8.29.0",
52
+ "jsdoc": "^4.0.0"
53
53
  }
54
54
  }