We actually need node 20

This commit is contained in:
Johannes Zellner 2024-10-09 15:41:44 +02:00
parent 9db46d6653
commit abfdacba4f

View file

@ -22,9 +22,13 @@ RUN mkdir -p "$(rbenv root)"/plugins/ruby-build && curl -LSs "https://github.com
ARG RUBY_VERSION=3.2.3 ARG RUBY_VERSION=3.2.3
RUN rbenv install ${RUBY_VERSION} RUN rbenv install ${RUBY_VERSION}
ENV PATH ${RBENV_ROOT}/versions/${RUBY_VERSION}/bin:$PATH ENV PATH ${RBENV_ROOT}/versions/${RUBY_VERSION}/bin:$PATH
RUN gem install --no-document bundler RUN gem install --no-document bundler
ARG NODE_VERSION=20.18.0
RUN mkdir -p /usr/local/node-${NODE_VERSION} && \
curl -L https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar zxf - --strip-components 1 -C /usr/local/node-${NODE_VERSION}
ENV PATH /usr/local/node-${NODE_VERSION}/bin:$PATH
ENV RAILS_ENV production ENV RAILS_ENV production
ENV NODE_ENV production ENV NODE_ENV production