A setup for working on typescript/javascript in a VS Code or Gitpod container
Preamble
- Install Docker Desktop if not installed
- Install the Remote Development extension pack in VS Code
- Run Docker Desktop
- Open repo folder with VS Code using Run Remote-Containers: Open Folder in Container...
Container composition
- using this Dockerfile
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:12
To start lite-server
npm start
Container conposition
FROM gitpod/workspace-full
DockerfileFROM buildpack-deps:focal
Dockerfile- Ubuntu Focal based