Skip to content

Commit f2e6a66

Browse files
committed
separate node version from apline image version
1 parent e115d36 commit f2e6a66

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"version": "latest"
2626
},
2727
"ghcr.io/devcontainers/features/node:1": {
28-
"version": "20.16.0"
28+
"version": "22.11.0"
2929
}
3030
},
3131

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ ARG RAILS_ROOT=/usr/src/app/
2020

2121
RUN apk update && apk upgrade && apk add --update --no-cache \
2222
bash \
23+
curl \
2324
imagemagick \
24-
nodejs \
2525
postgresql-client \
2626
tzdata \
27-
vim \
28-
yarn && rm -rf /var/cache/apk/*
27+
vim && rm -rf /var/cache/apk/*
28+
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ nodejs=22.11.0-r0 npm
2929

3030
WORKDIR $RAILS_ROOT
3131

3232
COPY . .
33+
RUN npm install --global yarn
3334
RUN yarn install
3435
RUN yarn build && yarn build:css
3536

0 commit comments

Comments
 (0)