Skip to content

Instantly share code, notes, and snippets.

@ssugimoto
Last active August 28, 2021 15:16
Show Gist options
  • Select an option

  • Save ssugimoto/acd7fe5d25b9adaf149dd3c8a3bdbf2a to your computer and use it in GitHub Desktop.

Select an option

Save ssugimoto/acd7fe5d25b9adaf149dd3c8a3bdbf2a to your computer and use it in GitHub Desktop.

Revisions

  1. ssugimoto revised this gist Aug 28, 2021. No changes.
  2. ssugimoto created this gist Aug 28, 2021.
    21 changes: 21 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    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