From 3b41a860a75d89651e40a1a5b0bcd0bb54423aa7 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Mon, 7 Oct 2024 01:35:46 -0700 Subject: [PATCH] Update Dockerfile --- .devcontainer/Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 39865266e..0dda07ed8 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,11 +1,13 @@ FROM mcr.microsoft.com/devcontainers/javascript-node:1-20@sha256:f28172ab4f8cf57dacadc4d2aecf6d108bd9881617bd133b16ddcff6e6eef340 -# We uninstall pnpm here, since we enable the corepack version in the postCreateCommand -# This ensures we respect the "packageManager" version in package.json -RUN npm uninstall -g pnpm - -# Install Proto CLI and it's dependencies -RUN apt-get update && apt-get install -y git unzip gzip xz-utils +# Enable Proto RUN curl -fsSL https://moonrepo.dev/install/proto.sh | bash -s -- --yes +# Change default Node version +RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install 20.14.0" + +# Enable corepack (incase proto fails) +RUN corepack enable pnpm + +# Copy welcome message COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt