Mirrored version of VSCode `typescript-node-*` for Docker image development purposes.
326
Develop Node.js 14 based applications in TypeScript. Includes Node.js, eslint, yarn, and the TypeScript compiler.
| Metadata | Value |
|---|---|
| Contributors | The VS Code Team |
| Definition type | Dockerfile |
| Published image | mcr.microsoft.com/vscode/devcontainers/typescript-node:14 |
| Published image architecture(s) | x86-64 |
| Container host OS support | Linux, macOS, Windows |
| Languages, platforms | Node.js, TypeScript |
While the definition itself works unmodified, you can also directly reference pre-built versions of .devcontainer/Dockerfile by using the image property in .devcontainer/devcontainer.json or updating the FROM statement in your own Dockerfile to:
mcr.microsoft.com/vscode/devcontainers/typescript-node:14
Alternatively, you can use the contents of the Dockerfile or the JavaScript and Node.js Dockerfile to fully customize your container's contents.
Beyond TypeScript, Node.js, and git, this image / Dockerfile includes eslint, zsh, Oh My Zsh!, a non-root vscode user with sudo access, and a set of common dependencies for development. It also installs tslint globally and includes the VS Code TSLint extension for backwards compatibility, but TSLint has been deprecated in favor of ESLint, so eslint and its corresponding extension has been included as well.
Note that, while eslintand typescript are installed globally for convenance, but as of ESLint 6, you will need to install the following packages locally to lint TypeScript code: @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, typescript.
Just follow these steps:
If this is your first time using a development container, please follow the getting started steps to set up your machine.
To use the pre-built image:
To use the Dockerfile for this definition (rather than the pre-built image):
containers/typescript-node-14/.devcontainer to the root of your project folder.After following step 2 or 3, the contents of the .devcontainer folder in your project can be adapted to meet your needs.
Finally, press F1 and run Remote-Containers: Reopen Folder in Container to start using the definition.
This definition includes some test code that will help you verify it is working as expected on your system. Follow these steps:
containers/typescript-node-14 folder.npm install and compile the source before starting it.test-project folder to do further testing.Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See LICENSE.
Content type
Image
Digest
Size
386.9 MB
Last updated
about 6 years ago
docker pull blazejewicz/typescript-node