Updated with latest definitions

This commit is contained in:
Chuck Lantz
2020-04-09 00:42:27 +00:00
parent 99578e233c
commit e9dd97281a
2 changed files with 13 additions and 20 deletions

View File

@@ -24,11 +24,8 @@ RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
&& chown -R $USER_UID:$USER_GID /home/$USERNAME; \ && chown -R $USER_UID:$USER_GID /home/$USERNAME; \
fi fi
# ************************************************************* # ** [Optional] Uncomment this section to install additional packages. **
# * 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 *
# *************************************************************
# ENV DEBIAN_FRONTEND=noninteractive # ENV DEBIAN_FRONTEND=noninteractive
# RUN apt-get update \ # RUN apt-get update \
# && apt-get -y install --no-install-recommends <your-package-list-here> \ # && apt-get -y install --no-install-recommends <your-package-list-here> \
@@ -38,6 +35,3 @@ RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
# && apt-get clean -y \ # && apt-get clean -y \
# && rm -rf /var/lib/apt/lists/* # && rm -rf /var/lib/apt/lists/*
# ENV DEBIAN_FRONTEND=dialog # ENV DEBIAN_FRONTEND=dialog
# Uncomment to default to non-root user
# USER $USER_UID

View File

@@ -2,24 +2,23 @@
"name": "Node.js Sample", "name": "Node.js Sample",
"dockerFile": "Dockerfile", "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. // 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": { "settings": {
"terminal.integrated.shell.linux": "/bin/bash" "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. // Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [ "extensions": [
"dbaeumer.vscode-eslint" "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"
} }