From f2e6a669cdac896ce30de0b30404d7b26408f22d Mon Sep 17 00:00:00 2001 From: firelemons Date: Wed, 20 Nov 2024 11:28:08 -0600 Subject: [PATCH] separate node version from apline image version --- .devcontainer/devcontainer.json | 2 +- Dockerfile | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 97bea45fa0..0ad1fb77ff 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,7 +25,7 @@ "version": "latest" }, "ghcr.io/devcontainers/features/node:1": { - "version": "20.16.0" + "version": "22.11.0" } }, diff --git a/Dockerfile b/Dockerfile index 32c58e95c3..4800a801db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,16 +20,17 @@ ARG RAILS_ROOT=/usr/src/app/ RUN apk update && apk upgrade && apk add --update --no-cache \ bash \ + curl \ imagemagick \ - nodejs \ postgresql-client \ tzdata \ - vim \ - yarn && rm -rf /var/cache/apk/* + vim && rm -rf /var/cache/apk/* +RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ nodejs=22.11.0-r0 npm WORKDIR $RAILS_ROOT COPY . . +RUN npm install --global yarn RUN yarn install RUN yarn build && yarn build:css