Skip to content

Commit

Permalink
Upgrade to Node 16 (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Sep 3, 2022
1 parent a670aa1 commit aa54347
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 257 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
os:
- ubuntu-latest
node-version:
- 14
- 16
- 18
include:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Package the Node.js project into a single binary
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:16.16.0-alpine3.16 as builder
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:16.17.0-alpine3.16 as builder

# Workaround: https://github.com/nodejs/docker-node/issues/813#issuecomment-407339011
# Error: could not get uid/gid
# [ 'nobody', 0 ]
RUN npm config set unsafe-perm true

RUN npm install --location=global pkg@5.6.0 pkg-fetch@3.3.0
RUN npm install --location=global pkg@5.8.0 pkg-fetch@3.4.2

ENV NODE node16
ENV PLATFORM alpine
Expand All @@ -23,7 +23,7 @@ RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm ci
RUN /usr/local/bin/pkg bin/asciidoctor-web-pdf --config package.json --targets ${NODE}-${PLATFORM}-$([ "$TARGETARCH" == "amd64" ] && echo "x64" || echo "$TARGETARCH") -o app.bin

# Create the image
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.16.1
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.16.2

RUN addgroup -g 1000 asciidoctor && adduser -D -G asciidoctor -u 1000 asciidoctor

Expand Down
Loading

0 comments on commit aa54347

Please sign in to comment.