diff --git a/Dockerfile b/Dockerfile index 627c642f..150e3f25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ FROM ruby:3.3.5 as base LABEL org.opencontainers.image.authors="contact@dxw.com" -RUN curl -L https://deb.nodesource.com/setup_20.x | bash - +COPY .node-version .node-version +RUN curl -L "https://deb.nodesource.com/setup_$(cat .node-version | cut -c1-2).x" | bash - RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | \