From e9dd97281a5d3ff29d080cde4439f2bfd208479a Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Thu, 9 Apr 2020 00:42:27 +0000 Subject: [PATCH] Updated with latest definitions --- .devcontainer/Dockerfile | 10 ++-------- .devcontainer/devcontainer.json | 23 +++++++++++------------ 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e98d27e..c3d831f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -24,11 +24,8 @@ RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \ && chown -R $USER_UID:$USER_GID /home/$USERNAME; \ fi -# ************************************************************* -# * Uncomment this section to use RUN instructions to install * -# * any needed dependencies after executing "apt-get update". * -# * See https://docs.docker.com/engine/reference/builder/#run * -# ************************************************************* +# ** [Optional] Uncomment this section to install additional packages. ** +# # ENV DEBIAN_FRONTEND=noninteractive # RUN apt-get update \ # && apt-get -y install --no-install-recommends \ @@ -38,6 +35,3 @@ RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \ # && apt-get clean -y \ # && rm -rf /var/lib/apt/lists/* # ENV DEBIAN_FRONTEND=dialog - -# Uncomment to default to non-root user -# USER $USER_UID diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 86bfbbd..3b32981 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,24 +2,23 @@ "name": "Node.js Sample", "dockerFile": "Dockerfile", - // Use 'appPort' to create a container with published ports. If the port isn't working, be sure - // your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost. - "appPort": [3000], - - // Comment out the next line to run as root instead. - "remoteUser": "node", - // Use 'settings' to set *default* container specific settings.json values on container create. - // You can edit these settings after create using File > Preferences > Settings > Remote. "settings": { "terminal.integrated.shell.linux": "/bin/bash" }, - // Specifies a command that should be run after the container has been created. - "postCreateCommand": "yarn install", - // Add the IDs of extensions you want installed when the container is created in the array below. "extensions": [ "dbaeumer.vscode-eslint" - ] + ], + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [3000], + + // Specifies a command that should be run after the container has been created. + "postCreateCommand": "yarn install", + + // Comment out the next line to run as root instead. + "remoteUser": "node" + }