Comments (4)
I think this commit will resolve problem, but not published for Docker Hub yet.
20d9b4a
from passenger-docker.
Until there's a new release, you're going to need to do something like:
# install all current OS package updates
RUN apt-get update && \
apt -y remove nodejs && \
apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
And then if you actually need node, do:
# Install Node 18 and create yarn executables
RUN apt-get -y update && \
apt-get -y install curl gnupg ca-certificates && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --batch --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get -y install nodejs && \
npm update npm -g || ( cat /root/.npm/_logs/*-debug.log && false ) && \
corepack enable && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
If you're building your own, build off master instead of needing to do this. Be aware it's based on Ubuntu 22.02 though, so test everything.
from passenger-docker.
Getting the same exact issue, but on phusion/passenger-ruby27:2.5.1-arm64
. Tried downgrading to 2.5.0, but that did not resolve the issue.
from passenger-docker.
I am going this for yarn
and node
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/yarnkey.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN rm /usr/share/keyrings/nodesource.gpg
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt update
RUN apt install -y --no-install-recommends --no-install-suggests nginx-extras rsyslog libmagickwand-dev imagemagick ghostscript nodejs yarn xfonts-75dpi xfonts-base wget mysql-client ca-certificates gnupg
I had to delete the nodesource.gpg file that's already in place, otherwise gpg
would complain.
from passenger-docker.
Related Issues (20)
- Passenger watchdog is unable to start since 2.4 HOT 6
- Unable to start the Phusion Passenger(R) watchdog HOT 13
- "daemon" directive is duplicate in /etc/nginx/nginx.conf HOT 14
- Ruby 3.2 image release HOT 5
- error while trying to write to `/bundle/ruby/2.7.0`. HOT 1
- Ruby 3.2 is not built with YJIT HOT 2
- Node 18 HOT 1
- Switch base to Debian 11 from Ubuntu
- Passenger Ruby 3.x several vulnerabilities ? HOT 3
- Baseimage tag MASTER is GONE HOT 1
- I need to have --with-http_mp4_module in nginx in Passenger-ruby32 docker image HOT 2
- Changes to nodesource distributions / discontinuation of setup scripts HOT 1
- New Release? HOT 3
- Error while trying to use Ruby 3.3 HOT 4
- Update Node to LTS 20 HOT 1
- how to set license_proxy_url HOT 1
- irb/rails console RC file error HOT 9
- Segmentation fault HOT 3
- neither passenger_max_instances or passenger_max_pool_size seem to work (RoR) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger-docker.