Skip to content

Instantly share code, notes, and snippets.

@ssugimoto
Last active August 28, 2021 15:16
Show Gist options
  • Save ssugimoto/acd7fe5d25b9adaf149dd3c8a3bdbf2a to your computer and use it in GitHub Desktop.
Save ssugimoto/acd7fe5d25b9adaf149dd3c8a3bdbf2a to your computer and use it in GitHub Desktop.
VSCode remote container Python3.8 ,with nvm and node install
FROM mcr.microsoft.com/vscode/devcontainers/python:3.8
RUN apt-get update \
&& apt-get -y install curl \
&& apt-get autoremove -y \
&& apt-get clean -y
#RUN apt-get upgrade \
# && apt-get -y install curl
ENV NVM_DIR /usr/local/share/nvm
ENV NODE_VERSION 12.22.1
#
# Install nvm with node and npm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
WORKDIR /workspaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment