Update Dockerfile
This commit is contained in:
		@@ -7,6 +7,23 @@
 | 
				
			|||||||
# https://github.com/microsoft/vscode-dev-containers/tree/v0.43.0/containers/javascript-node-12/.devcontainer/Dockerfile
 | 
					# https://github.com/microsoft/vscode-dev-containers/tree/v0.43.0/containers/javascript-node-12/.devcontainer/Dockerfile
 | 
				
			||||||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0.43-12
 | 
					FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0.43-12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# The image referenced above includes a non-root user with sudo access. Add 
 | 
				
			||||||
 | 
					# the "remoteUser" property to devcontainer.json to use it. On Linux, the container 
 | 
				
			||||||
 | 
					# user's GID/UIDs will be updated to match your local UID/GID when using the image
 | 
				
			||||||
 | 
					# or dockerFile property. Update USER_UID/USER_GID below if you are using the
 | 
				
			||||||
 | 
					# dockerComposeFile property or want the image itself to start with different ID
 | 
				
			||||||
 | 
					# values. See https://aka.ms/vscode-remote/containers/non-root-user for details.
 | 
				
			||||||
 | 
					ARG USER_UID=1000
 | 
				
			||||||
 | 
					ARG USER_GID=$USER_UID
 | 
				
			||||||
 | 
					ARG USERNAME=node
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# [Optional] Update UID/GID if needed
 | 
				
			||||||
 | 
					RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
 | 
				
			||||||
 | 
					        && groupmod --gid $USER_GID $USERNAME \
 | 
				
			||||||
 | 
					        && usermod --uid $USER_UID --gid $USER_GID $USERNAME \
 | 
				
			||||||
 | 
					        && chown -R $USER_UID:$USER_GID /home/$USERNAME; \
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# *************************************************************
 | 
					# *************************************************************
 | 
				
			||||||
# * Uncomment this section to use RUN instructions to install *
 | 
					# * Uncomment this section to use RUN instructions to install *
 | 
				
			||||||
# * any needed dependencies after executing "apt-get update". *
 | 
					# * any needed dependencies after executing "apt-get update". *
 | 
				
			||||||
@@ -24,4 +41,3 @@ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0.43-12
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Uncomment to default to non-root user
 | 
					# Uncomment to default to non-root user
 | 
				
			||||||
# USER $USER_UID
 | 
					# USER $USER_UID
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user