diff --git a/generate/templates/Dockerfile.ps1 b/generate/templates/Dockerfile.ps1 index 212e3647..be49c4aa 100644 --- a/generate/templates/Dockerfile.ps1 +++ b/generate/templates/Dockerfile.ps1 @@ -54,9 +54,17 @@ if ([version]$VARIANT['_metadata']['package_version'] -ge [version]'4.90') { # Use 'NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' to fix node 18.20 and 20.12 making experimental API the default, which breaks builds # Use '-U_FORTIFY_SOURCE' to fix vsnprintf errors in alpine: https://gitlab.alpinelinux.org/alpine/aports/-/issues/8626 # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? - ( set +x; export GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT$( if ([version]$VARIANT['_metadata']['package_version'] -ge [version]'4.90') { ' -U_FORTIFY_SOURCE' } )' npm install --global code-server@$( $VARIANT['_metadata']['package_version'] ) --unsafe-perm ); \ + ( set +x; export GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT$( + if ([version]$VARIANT['_metadata']['package_version'] -ge [version]'4.90') { + ' -U_FORTIFY_SOURCE' + } + )' npm install --global code-server@$( $VARIANT['_metadata']['package_version'] ) --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT$( + if ([version]$VARIANT['_metadata']['package_version'] -ge [version]'4.90') { + ' -U_FORTIFY_SOURCE' + } + )' npm install --legacy-peer-deps ); \ code-server --version; \ apk del `$DEPS diff --git a/variants/4.90.3-docker-go-1.20.14/Dockerfile b/variants/4.90.3-docker-go-1.20.14/Dockerfile index 3dc8ca65..8c6e4fed 100644 --- a/variants/4.90.3-docker-go-1.20.14/Dockerfile +++ b/variants/4.90.3-docker-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.90.3 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.90.3-docker-rootless-go-1.20.14/Dockerfile b/variants/4.90.3-docker-rootless-go-1.20.14/Dockerfile index f264143c..b58f63af 100644 --- a/variants/4.90.3-docker-rootless-go-1.20.14/Dockerfile +++ b/variants/4.90.3-docker-rootless-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.90.3 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.90.3-docker-rootless/Dockerfile b/variants/4.90.3-docker-rootless/Dockerfile index c3ba21f3..5c46930f 100644 --- a/variants/4.90.3-docker-rootless/Dockerfile +++ b/variants/4.90.3-docker-rootless/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.90.3 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.90.3-docker/Dockerfile b/variants/4.90.3-docker/Dockerfile index d963561f..642a51ad 100644 --- a/variants/4.90.3-docker/Dockerfile +++ b/variants/4.90.3-docker/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.90.3 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.90.3/Dockerfile b/variants/4.90.3/Dockerfile index e365f28d..e7cda891 100644 --- a/variants/4.90.3/Dockerfile +++ b/variants/4.90.3/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.90.3 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.91.1-docker-go-1.20.14/Dockerfile b/variants/4.91.1-docker-go-1.20.14/Dockerfile index 2f66eaae..5cb67862 100644 --- a/variants/4.91.1-docker-go-1.20.14/Dockerfile +++ b/variants/4.91.1-docker-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.91.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.91.1-docker-rootless-go-1.20.14/Dockerfile b/variants/4.91.1-docker-rootless-go-1.20.14/Dockerfile index e86f9a73..e20944f7 100644 --- a/variants/4.91.1-docker-rootless-go-1.20.14/Dockerfile +++ b/variants/4.91.1-docker-rootless-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.91.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.91.1-docker-rootless/Dockerfile b/variants/4.91.1-docker-rootless/Dockerfile index 2ca5f9d2..5b5b62a5 100644 --- a/variants/4.91.1-docker-rootless/Dockerfile +++ b/variants/4.91.1-docker-rootless/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.91.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.91.1-docker/Dockerfile b/variants/4.91.1-docker/Dockerfile index 457b0694..44c433ba 100644 --- a/variants/4.91.1-docker/Dockerfile +++ b/variants/4.91.1-docker/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.91.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.91.1/Dockerfile b/variants/4.91.1/Dockerfile index 854496bc..422cb5bf 100644 --- a/variants/4.91.1/Dockerfile +++ b/variants/4.91.1/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.91.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.92.2-docker-go-1.20.14/Dockerfile b/variants/4.92.2-docker-go-1.20.14/Dockerfile index df0dc44e..1096cf37 100644 --- a/variants/4.92.2-docker-go-1.20.14/Dockerfile +++ b/variants/4.92.2-docker-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.92.2 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.92.2-docker-rootless-go-1.20.14/Dockerfile b/variants/4.92.2-docker-rootless-go-1.20.14/Dockerfile index 538daac7..723aa55e 100644 --- a/variants/4.92.2-docker-rootless-go-1.20.14/Dockerfile +++ b/variants/4.92.2-docker-rootless-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.92.2 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.92.2-docker-rootless/Dockerfile b/variants/4.92.2-docker-rootless/Dockerfile index d7b1cb01..e65283aa 100644 --- a/variants/4.92.2-docker-rootless/Dockerfile +++ b/variants/4.92.2-docker-rootless/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.92.2 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.92.2-docker/Dockerfile b/variants/4.92.2-docker/Dockerfile index 82dbc9d9..55935bff 100644 --- a/variants/4.92.2-docker/Dockerfile +++ b/variants/4.92.2-docker/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.92.2 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.92.2/Dockerfile b/variants/4.92.2/Dockerfile index 73c0ad71..cba7d5b1 100644 --- a/variants/4.92.2/Dockerfile +++ b/variants/4.92.2/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.92.2 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.93.1-docker-go-1.20.14/Dockerfile b/variants/4.93.1-docker-go-1.20.14/Dockerfile index 3e35ee5a..27cb23ab 100644 --- a/variants/4.93.1-docker-go-1.20.14/Dockerfile +++ b/variants/4.93.1-docker-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.93.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.93.1-docker-rootless-go-1.20.14/Dockerfile b/variants/4.93.1-docker-rootless-go-1.20.14/Dockerfile index 948cfcba..0e63e2f4 100644 --- a/variants/4.93.1-docker-rootless-go-1.20.14/Dockerfile +++ b/variants/4.93.1-docker-rootless-go-1.20.14/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.93.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.93.1-docker-rootless/Dockerfile b/variants/4.93.1-docker-rootless/Dockerfile index 47e927c1..7121ca28 100644 --- a/variants/4.93.1-docker-rootless/Dockerfile +++ b/variants/4.93.1-docker-rootless/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.93.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.93.1-docker/Dockerfile b/variants/4.93.1-docker/Dockerfile index 1531b0a0..3e282755 100644 --- a/variants/4.93.1-docker/Dockerfile +++ b/variants/4.93.1-docker/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.93.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS diff --git a/variants/4.93.1/Dockerfile b/variants/4.93.1/Dockerfile index 564cbb9b..35576fef 100644 --- a/variants/4.93.1/Dockerfile +++ b/variants/4.93.1/Dockerfile @@ -37,7 +37,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \ # Use '-DUSE_IPO=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF' to fix lto-wrapper errors? ( set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --global code-server@4.93.1 --unsafe-perm ); \ # Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530 - ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --legacy-peer-deps ); \ + ( cd /usr/local/lib/node_modules/code-server/lib/vscode; set +x; export GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ); set -x; CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -U_FORTIFY_SOURCE' npm install --legacy-peer-deps ); \ code-server --version; \ apk del $DEPS