Skip to content

Instantly share code, notes, and snippets.

@mtik00
Last active January 29, 2023 01:54
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 mtik00/7cfe53e4c2cf5a7de4a60f6692d785d3 to your computer and use it in GitHub Desktop.
Save mtik00/7cfe53e4c2cf5a7de4a60f6692d785d3 to your computer and use it in GitHub Desktop.
A simple vscode task to run the current Javascript file in a node:alpine docker container
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "run file",
"type": "shell",
"command": "docker run --rm -it -v ${workspaceFolder}:/usr/src/app node:alpine /usr/src/app/${relativeFile}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment