Skip to content

Commit

Permalink
Fix: Fix broken builds on node 18.20 and 20.12
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Apr 21, 2024
1 parent f737ea2 commit f34bfaa
Show file tree
Hide file tree
Showing 61 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
"apk add --no-cache 'npm~8' 'nodejs~16'"
} ) \
&& npm config set python python3 \
&& GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@$( $VARIANT['_metadata']['package_version'] ) --unsafe-perm \
&& GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' 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 && GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.11.0-docker-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.11.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.11.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.11.0-docker-rootless-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.11.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.11.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.11.0-docker-rootless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.11.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.11.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.11.0-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.11.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.11.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.11.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.11.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.11.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.12.0-docker-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.12.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.12.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.12.0-docker-rootless-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.12.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.12.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.12.0-docker-rootless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.12.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.12.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.12.0-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.12.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.12.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.12.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.12.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.12.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.13.0-docker-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.13.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.13.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.13.0-docker-rootless-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.13.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.13.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.13.0-docker-rootless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.13.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.13.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.13.0-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.13.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.13.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.13.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.13.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.13.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.14.1-docker-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.14.1 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.14.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 && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.14.1-docker-rootless-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.14.1 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.14.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 && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.14.1-docker-rootless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.14.1 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.14.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 && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.14.1-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.14.1 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.14.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 && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.14.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.14.1 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.14.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 && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
2 changes: 1 addition & 1 deletion variants/4.15.0-docker-go-1.20.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN \
# Constraint to npm 8, or else npm will fail with 'npm ERR! python is not a valid npm option'. See: https://stackoverflow.com/questions/74522956/python-is-not-a-valid-npm-option and https://jubianchi.github.io/semver-check/#/~8/8
&& apk add --no-cache 'npm~8' 'nodejs~16' \
&& npm config set python python3 \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.15.0 --unsafe-perm \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm install --global code-server@4.15.0 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
&& code-server --version \
Expand Down
Loading

0 comments on commit f34bfaa

Please sign in to comment.