Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Dockerfile use a later version of the node engine? #63

Open
Zloka opened this issue Sep 26, 2020 · 3 comments
Open

Can Dockerfile use a later version of the node engine? #63

Zloka opened this issue Sep 26, 2020 · 3 comments

Comments

@Zloka
Copy link

Zloka commented Sep 26, 2020

The Dockerfile includes the following comment:
# Official Node.js 8.x lts image based on Debian stretch (has ghostscript 9.20 in its archive)

Is it not in the archive of later versions? A bit new to this, so how could I go about verifying this myself? :)

@Qwerios
Copy link

Qwerios commented Sep 6, 2024

I've just been able to at least get through npm install for the current node:22 (which is bookworm) with the following: ENV GS4JS_HOME=/usr/lib/aarch64-linux-gnu

Except from Dockerfile looks like this:

FROM node:22

# Add required system dependencies
#
RUN apt-get update
RUN apt-get install -y ghostscript libgs-dev

# Ghostscrip4js needs to be informed of the location of the libgs.so file
#
ENV GS4JS_HOME=/usr/lib/aarch64-linux-gnu

# COPY your sources and package.json stuff here

RUN npm install

# ENTRYPOINT and such here

@Qwerios
Copy link

Qwerios commented Sep 6, 2024

The aarch64 path appears to be specific when building on an M-series CPU.
When I pushed the build to a hosted linux docker builder (GCE in this case) I had to set the ENV variable to /usr/lib/x86_64-linux-gnu as per the docs

@NickNaso
Copy link
Owner

NickNaso commented Sep 6, 2024

The aarch64 path appears to be specific when building on an M-series CPU. When I pushed the build to a hosted linux docker builder (GCE in this case) I had to set the ENV variable to /usr/lib/x86_64-linux-gnu as per the docs

Yes, in this case you don't need to set GS4JS_HOME env variable because the default is /usr/lib/x86_64-linux-gnu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants