diff --git a/Dockerfile b/Dockerfile index ad41aee..cde7416 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,13 @@ RUN mkdir -p "$(rbenv root)"/plugins/ruby-build && curl -LSs "https://github.com ARG RUBY_VERSION=3.2.3 RUN rbenv install ${RUBY_VERSION} ENV PATH ${RBENV_ROOT}/versions/${RUBY_VERSION}/bin:$PATH - 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 NODE_ENV production