chore: Upgrade Node.js to v20 (#7759)

Co-authored-by: Vishnu Narayanan <vishnu@chatwoot.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Shivam Mishra
2023-08-28 20:50:35 +07:00
committed by GitHub
parent 57feedbf25
commit e2a6dc3e04
11 changed files with 50 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
# pre-build stage
FROM ruby:3.2.2-alpine3.16 AS pre-builder
FROM ruby:3.2.2-alpine3.18 AS pre-builder
# ARG default to production settings
# For development docker-compose file overrides ARGS
@@ -13,18 +13,21 @@ ENV RAILS_SERVE_STATIC_FILES ${RAILS_SERVE_STATIC_FILES}
ARG RAILS_ENV=production
ENV RAILS_ENV ${RAILS_ENV}
ARG NODE_OPTIONS="--openssl-legacy-provider"
ENV NODE_OPTIONS ${NODE_OPTIONS}
ENV BUNDLE_PATH="/gems"
RUN apk update && apk add --no-cache \
openssl \
tar \
build-base \
tzdata \
postgresql-dev \
postgresql-client \
nodejs \
yarn \
git \
openssl \
tar \
build-base \
tzdata \
postgresql-dev \
postgresql-client \
nodejs-current \
yarn \
git \
&& mkdir -p /var/app \
&& gem install bundler
@@ -70,7 +73,7 @@ RUN rm -rf /gems/ruby/3.2.0/cache/*.gem \
&& rm .gitignore
# final build stage
FROM ruby:3.2.2-alpine3.16
FROM ruby:3.2.2-alpine3.18
ARG BUNDLE_WITHOUT="development:test"
@@ -92,12 +95,12 @@ ENV BUNDLE_PATH="/gems"
RUN apk update && apk add --no-cache \
build-base \
openssl \
tzdata \
postgresql-client \
imagemagick \
git \
vips \
openssl \
tzdata \
postgresql-client \
imagemagick \
git \
vips \
&& gem install bundler
RUN if [ "$RAILS_ENV" != "production" ]; then \