Added docker stuff
This commit is contained in:
		
							
								
								
									
										2
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
Dockerfile
 | 
			
		||||
node_modules
 | 
			
		||||
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
FROM node:latest AS build
 | 
			
		||||
 | 
			
		||||
ADD . /app
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
RUN npm install && npm run build
 | 
			
		||||
 | 
			
		||||
FROM nginx:stable
 | 
			
		||||
 | 
			
		||||
COPY --from=build /app/dist /usr/share/nginx/html
 | 
			
		||||
ADD nginx-site.conf /etc/nginx/conf.d/default.conf
 | 
			
		||||
							
								
								
									
										13
									
								
								nginx-site.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								nginx-site.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
server {
 | 
			
		||||
    listen       80;
 | 
			
		||||
    listen  [::]:80;
 | 
			
		||||
    server_name  localhost;
 | 
			
		||||
 | 
			
		||||
    root   /usr/share/nginx/html;
 | 
			
		||||
    index  index.html;
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
        try_files $uri $uri/ /index.html;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user