generated from templates/base
	Initial commit
This commit is contained in:
		
							
								
								
									
										16
									
								
								.devcontainer/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								.devcontainer/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
FROM mcr.microsoft.com/devcontainers/base:dev-ubuntu-20.04  
 | 
			
		||||
 | 
			
		||||
# 安装 build-essential  
 | 
			
		||||
RUN apt-get update && \
 | 
			
		||||
    apt-get install -y --no-install-recommends build-essential && \
 | 
			
		||||
#清理 apt 缓存  
 | 
			
		||||
    apt-get autoremove -y && \
 | 
			
		||||
    apt-get clean && \
 | 
			
		||||
    rm -rf /var/lib/apt/lists/*  
 | 
			
		||||
 | 
			
		||||
# 设置工作目录(可选)  
 | 
			
		||||
WORKDIR /workspace  
 | 
			
		||||
 | 
			
		||||
# 可以添加其他的自定义设置,比如复制源代码等  
 | 
			
		||||
 | 
			
		||||
CMD ["/bin/bash"] # 可以添加默认命令,比如进入 bash 
 | 
			
		||||
							
								
								
									
										18
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
{
 | 
			
		||||
    "name": "DevContainerExample",
 | 
			
		||||
 | 
			
		||||
    "image": "mcr.microsoft.com/devcontainers/base:dev-ubuntu-20.04",
 | 
			
		||||
    "customizations": {
 | 
			
		||||
      "vscode": {
 | 
			
		||||
        "settings": {},
 | 
			
		||||
        "extensions": [
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "portsAttributes": {
 | 
			
		||||
      "3000": {
 | 
			
		||||
        "label": "Web Server",
 | 
			
		||||
        "onAutoForward": "notify"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
		Reference in New Issue
	
	Block a user