diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 147d195..294600c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: ${{ runner.os }}- - uses: actions/setup-node@v1 with: - node-version: '12.x' + node-version: '14.x' - run: npm ci - run: npm run coverage - name: Fix Code Coverage Paths diff --git a/Dockerfile b/Dockerfile index 9e9ed89..f81eaca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-alpine +FROM node:14-alpine WORKDIR /tmp/iidy @@ -8,13 +8,13 @@ COPY . . RUN apk update && apk add --no-cache binutils git \ && npm ci . && npm run build \ - && $(npm bin)/pkg --out-path dist -t node8-alpine-x64 package.json \ - && strip /root/.pkg-cache/*/fetched-v8* \ - && $(npm bin)/pkg --out-path dist -t node8-alpine-x64 package.json + && $(npm bin)/pkg --out-path dist -t node14-alpine-x64 package.json \ + && strip /root/.pkg-cache/*/fetched-* \ + && $(npm bin)/pkg --out-path dist -t node14-alpine-x64 package.json # We run pkg twice. First to grab the base binary then again after we strip it. # This strips 8Mb off the total image size. -FROM alpine:3.9 +FROM alpine:3.14 RUN apk --no-cache add libstdc++ git diff --git a/Dockerfile.test-npm-build b/Dockerfile.test-npm-build index d830fb9..2f9332f 100644 --- a/Dockerfile.test-npm-build +++ b/Dockerfile.test-npm-build @@ -1,4 +1,4 @@ -FROM node:10-alpine +FROM node:14-alpine WORKDIR /tmp/iidy @@ -8,4 +8,3 @@ RUN apk update && apk add --no-cache git \ && npm ci . && npm run build && ln -s /tmp/iidy/bin/iidy /usr/bin/ ENTRYPOINT ["/usr/bin/iidy"] - diff --git a/package-lock.json b/package-lock.json index 1a34628..b5ad7d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -78,7 +78,7 @@ "typescript": "4.4.3" }, "engines": { - "node": ">=12.0.0", + "node": ">=14.0.0", "npm": ">=6.0.0" } }, diff --git a/package.json b/package.json index 722fcc5..3a67c46 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "tsc -p .", "watch": "tsc --watch", "lint": "tslint -p . src/*ts src/**/*ts", - "pkg-binaries": "pkg --out-path dist -t node12-macos,node12-linux package.json", + "pkg-binaries": "pkg --out-path dist -t node14-macos,node14-linux package.json", "test": "mocha lib/tests/**/*js", "test-watch": "mocha --watch lib/tests/**/*js", "ts-test-watch": "mocha --watch src/tests/**/*ts", @@ -20,7 +20,7 @@ "repository": "https://github.com/unbounce/iidy", "license": "MIT", "engines": { - "node": ">=12.0.0", + "node": ">=14.0.0", "npm": ">=6.0.0" }, "dependencies": {