add dockerfile
This commit is contained in:
		
							parent
							
								
									d5e9dc719d
								
							
						
					
					
						commit
						c5b714ab5e
					
				
							
								
								
									
										6
									
								
								docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| FROM nginx:alpine | ||||
| 
 | ||||
| EXPOSE 80 | ||||
| 
 | ||||
| COPY docker/nginx.conf /etc/nginx/conf.d/default.conf | ||||
| COPY dist/ /var/www/html/ | ||||
							
								
								
									
										20
									
								
								docker/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								docker/nginx.conf
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| gzip on; | ||||
| gzip_proxied any; | ||||
| gzip_vary on; | ||||
| gzip_buffers 16 8k; | ||||
| gzip_types *; | ||||
| 
 | ||||
| server { | ||||
|   listen 80; | ||||
|   server_name localhost; | ||||
|   root /var/www/html; | ||||
| 
 | ||||
|   location / { | ||||
|     root /var/www/html; | ||||
|     try_files $uri /index.html; | ||||
|   } | ||||
| 
 | ||||
|   location = /index.html { | ||||
|     add_header 'Cache-Control' 'no-cache'; | ||||
|   } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user