Skip to content

Commit

Permalink
Update package to support Node18 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgelob committed Sep 19, 2023
1 parent bd122ca commit 53a7a3a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.6.0
18.17.1
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine3.14
FROM node:18.17.1-bullseye-slim

ARG NODE_ENV=production
ENV NODE_ENV=$NODE_ENV
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lob/pdffonts",
"version": "3.2.0",
"version": "3.3.0",
"description": "Node bindings for Poppler's pdffonts CLI",
"main": "./lib/pdffonts.js",
"scripts": {
Expand Down
9 changes: 5 additions & 4 deletions scripts/install-poppler-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# - Add pkgconf, poppler-simple needs pkg-config to build
# - Add poppler-dev, the standard poppler package won't do
# - Add poppler-data from community repo
apk add alpine-sdk
apk add pkgconf
apk add poppler-dev
apk add poppler-data --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
apt-get update \
&& apt-get install -y python3 make g++ \
&& apt-get install -y pkg-config \
&& apt-get install -y libpoppler-cpp-dev libpoppler-private-dev \
&& apt-get install -y poppler-data
14 changes: 6 additions & 8 deletions scripts/install-system-dependencies-alpine.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/usr/bin/env sh

apk update

# Install certs so we can pull from https sources
apk add --no-cache ca-certificates
update-ca-certificates

# For cov reports
apk add lcov --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
apt-get update \
&& apt-get upgrade \
&& apt-get install -y bash ca-certificates \
&& update-ca-certificates \
&& apt-get install -y lcov \
&& rm -rf /var/lib/apt/lists/* \

0 comments on commit 53a7a3a

Please sign in to comment.