mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
feat: update to node 22
This commit is contained in:
@@ -8,6 +8,7 @@ LABEL version="2.0.0" \
|
||||
### Configure versions to install
|
||||
ENV ANDROID_APIS="android-34" \
|
||||
ANDROID_BUILD_TOOLS_VERSION="34.0.0" \
|
||||
NODE_VERSION="22.x" \
|
||||
NPM_VERSION="^9.0.0" \
|
||||
IONIC_VERSION="^6.0.0" \
|
||||
CORDOVA_RES_VERSION="latest" \
|
||||
@@ -19,7 +20,6 @@ ENV ANDROID_APIS="android-34" \
|
||||
ANDROID_SDK_ROOT="/opt/android-sdk" \
|
||||
### Installation files
|
||||
SCRIPTS_DIRECTORY="scripts" \
|
||||
NODE_SETUP_SCRIPT="node_setup.sh" \
|
||||
TMP_PROJECT_NAME="tmp-project"
|
||||
|
||||
### Set $PATH
|
||||
@@ -96,9 +96,9 @@ RUN curl $ANDROID_SDK_TOOLS_DOWNLOAD_URL > /tmp/android-sdk.zip && \
|
||||
sdkmanager "platforms;$ANDROID_APIS" "build-tools;$ANDROID_BUILD_TOOLS_VERSION"
|
||||
|
||||
### Copy scripts directory into the tmp folder, so it's available to the following commands
|
||||
COPY $SCRIPTS_DIRECTORY/$NODE_SETUP_SCRIPT /tmp/
|
||||
|
||||
RUN bash /tmp/$NODE_SETUP_SCRIPT && apt-get install -y nodejs && \
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash && \
|
||||
apt-get install -y nodejs && \
|
||||
### Install wanted npm version
|
||||
npm install -g --unsafe-perm npm@$NPM_VERSION && \
|
||||
### Install needed global npm packages
|
||||
@@ -114,7 +114,7 @@ RUN cd / && ionic start $TMP_PROJECT_NAME blank --type=angular --capacitor --no-
|
||||
RUN ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
|
||||
|
||||
### PNPM
|
||||
RUN corepack enable && corepack prepare pnpm@latest-8 --activate
|
||||
RUN corepack enable
|
||||
|
||||
### Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user