chore(core): update devcontainer (#23479)

Updates the devcontainer so that it has the correct version of pnpm

Fixes #20419
This commit is contained in:
Isaac Mann 2024-05-21 18:37:09 -04:00 committed by GitHub
parent 08ef0e4bde
commit 89fdd42c80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 7 deletions

7
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:20-bullseye
# Update the underlying (Debian) OS, to make sure we have the latest security patches and libraries like 'GLIBC'
RUN sudo apt-get update && sudo apt-get -y upgrade
# Update pnpm
RUN npm install -g pnpm@8.15.7

View File

@ -3,7 +3,10 @@
{ {
"name": "NxDevContainer", "name": "NxDevContainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:20-bullseye", "build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "Dockerfile"
},
"features": { "features": {
"ghcr.io/devcontainers/features/rust:1": {} "ghcr.io/devcontainers/features/rust:1": {}
}, },

View File

@ -1,11 +1,5 @@
#!/bin/sh #!/bin/sh
# Update the underlying (Debian) OS, to make sure we have the latest security patches and libraries like 'GLIBC'
sudo apt-get update && sudo apt-get -y upgrade
# Update pnpm
#npm install -g pnpm
# Install dependencies # Install dependencies
pnpm install --frozen-lockfile pnpm install --frozen-lockfile