Last active
August 28, 2021 15:16
-
-
Save ssugimoto/acd7fe5d25b9adaf149dd3c8a3bdbf2a to your computer and use it in GitHub Desktop.
VSCode remote container Python3.8 ,with nvm and node install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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