Skip to content

Instantly share code, notes, and snippets.

@kytiken
Last active May 31, 2020 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kytiken/c964c4843be8981d49a377a8fcea6f31 to your computer and use it in GitHub Desktop.
Save kytiken/c964c4843be8981d49a377a8fcea6f31 to your computer and use it in GitHub Desktop.
インスタントなruntime実行環境(nodeの場合)

Instant node environment

  1. docker run

    fish

    sudo docker-compose run -u (id -u $USER):(id -g $USER) app bash
    

    bash

    sudo docker-compose run -u $(id -u $USER):$(id -g $USER) app bash
    
  2. npm init

    npm init
    
  3. npm start

    npm start
    
version: '3'
services:
app:
image: node
volumes:
- .:/app
working_dir: /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment