Skip to content

Commit

Permalink
separate node version from apline image version
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Nov 20, 2024
1 parent e115d36 commit f2e6a66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"version": "latest"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "20.16.0"
"version": "22.11.0"
}
},

Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f2e6a66

Please sign in to comment.