mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 05:12:54 +00:00 
			
		
		
		
	Dockerize frontend for multistage building
This commit is contained in:
		
							
								
								
									
										4
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					.editorconfig
 | 
				
			||||||
 | 
					.gitignore
 | 
				
			||||||
 | 
					Dockerfile
 | 
				
			||||||
 | 
					README.md
 | 
				
			||||||
							
								
								
									
										16
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					FROM avatao/debian:buster
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg     |\
 | 
				
			||||||
 | 
					    sudo apt-key add -                                   &&\
 | 
				
			||||||
 | 
					    echo "deb https://dl.yarnpkg.com/debian/ stable main" |\
 | 
				
			||||||
 | 
					    sudo tee /etc/apt/sources.list.d/yarn.list           &&\
 | 
				
			||||||
 | 
					    apt-get update                                       &&\
 | 
				
			||||||
 | 
					    apt-get install -y --no-install-recommends nodejs yarn &&\
 | 
				
			||||||
 | 
					    rm -rf /var/lib/apt/lists/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					WORKDIR /srv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY . /srv
 | 
				
			||||||
 | 
					RUN yarn install --frozen-lockfile && yarn build --no-progress
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD yarn start
 | 
				
			||||||
		Reference in New Issue
	
	Block a user