Browse Source

Merge branch 'main' of github.com-fileformat:redirect2me/resolvers into main

pull/8/head
Andrew Marcuse 4 years ago
parent
commit
c6425b95ab
  1. 13
      .devcontainer/Dockerfile
  2. 16
      .devcontainer/base.Dockerfile
  3. 6
      .devcontainer/devcontainer.json

13
.devcontainer/Dockerfile

@ -0,0 +1,13 @@
ARG VARIANT=14
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:${VARIANT}
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
# [Optional] Uncomment if you want to install more global node packages
# RUN sudo -u node npm install -g <your-package-list -here>

16
.devcontainer/base.Dockerfile

@ -0,0 +1,16 @@
ARG VARIANT=14
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
# Install tslint, typescript. eslint is installed by javascript image
ARG USERNAME=node
RUN sudo -u ${USERNAME} npm install -g tslint typescript
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

6
.devcontainer/devcontainer.json

@ -15,13 +15,13 @@
"extensions": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin"
]
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [ 4000 ],
"forwardPorts": [ 4000 ],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install",
"postCreateCommand": "yarn install"
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "node"

Loading…
Cancel
Save