Browse Source
			
			
			Merge pull request #70 from dustyrip/dustyrip-patch-1
			
				Enable user to change ROCKET_ENV for container
			
			
				pull/74/head
			
			
		 
		
			
				
					
						
						Daniel García
					
					7 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					Dockerfile
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -6,6 +6,7 @@ FROM node:9-alpine as vault | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					ENV VAULT_VERSION "1.27.0" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					ENV URL "https://github.com/bitwarden/web/archive/v${VAULT_VERSION}.tar.gz" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					ENV ROCKET_ENV "staging" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					RUN apk add --update-cache --upgrade \ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    curl \ | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -86,6 +87,4 @@ COPY --from=vault /web-vault ./web-vault | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					COPY --from=build app/target/release/bitwarden_rs . | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					# Configures the startup! | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					# Use production to disable Rocket logging | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					#CMD ROCKET_ENV=production ./bitwarden_rs | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					CMD ROCKET_ENV=staging ./bitwarden_rs | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					CMD ./bitwarden_rs | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |