Merge 0cbff88e8b
into b6fe5ac637
commit
6783876273
@ -0,0 +1,16 @@
|
||||
# See here for image contents: https://github.com/devcontainers/images/blob/main/src/typescript-node/.devcontainer/Dockerfile
|
||||
|
||||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
|
||||
ARG VARIANT="16-bullseye"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
curl \
|
||||
build-essential \
|
||||
libpq-dev \
|
||||
libwebp-dev \
|
||||
libsasl2-dev libldap2-dev libssl-dev \
|
||||
gnupg gnupg2 gnupg1
|
||||
|
||||
EXPOSE 5055
|
@ -0,0 +1,47 @@
|
||||
/**
|
||||
For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||||
https://github.com/devcontainers/images/blob/main/src/typescript-node/.devcontainer/Dockerfile
|
||||
**/
|
||||
{
|
||||
"name": "Node Typescript",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"context": "..",
|
||||
"args": {
|
||||
/**
|
||||
Update 'VARIANT' to pick a Node version
|
||||
Append -bullseye or -buster to pin to an OS version.
|
||||
Use -bullseye variants on local on arm64/Apple Silicon.
|
||||
**/
|
||||
"VARIANT": "16"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
// Configure properties specific to VS Code.
|
||||
"vscode": {
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"EditorConfig.editorconfig",
|
||||
"esbenp.prettier-vscode",
|
||||
"Orta.vscode-jest",
|
||||
"stylelint.vscode-stylelint",
|
||||
"bradlc.vscode-tailwindcss",
|
||||
"eamodio.gitlens",
|
||||
"DavidAnson.vscode-markdownlint",
|
||||
"adam-bender.commit-message-editor",
|
||||
"ms-vscode-remote.vscode-remote-extensionpack",
|
||||
"ms-vscode.remote-explorer"
|
||||
]
|
||||
}
|
||||
},
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
"forwardPorts": [5055],
|
||||
/**
|
||||
Use 'onCreateCommand' to run commands at the end of container creation.
|
||||
Use 'postCreateCommand' to run commands after the container is created.
|
||||
**/
|
||||
"onCreateCommand": "yarn",
|
||||
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && git config --global gpg.program $(which gpg)",
|
||||
// Remote user of container -- Base image uses 'node' as default
|
||||
"remoteUser": "node"
|
||||
}
|
Loading…
Reference in new issue