| 
						
						
							
								
							
						
						
					 | 
					@ -204,8 +204,10 @@ RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabih | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					# because we already have a binary built | 
					 | 
					 | 
					# because we already have a binary built | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					FROM {{ runtime_stage_base_image }} | 
					 | 
					 | 
					FROM {{ runtime_stage_base_image }} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					ARG ROCKET_PORT=80 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					ARG WEBSOCKET_PORT=3012 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					ENV ROCKET_ENV "staging" | 
					 | 
					 | 
					ENV ROCKET_ENV "staging" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					ENV ROCKET_PORT=80 | 
					 | 
					 | 
					ENV ROCKET_PORT=$ROCKET_PORT | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					ENV ROCKET_WORKERS=10 | 
					 | 
					 | 
					ENV ROCKET_WORKERS=10 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{% if "alpine" in runtime_stage_base_image %} | 
					 | 
					 | 
					{% if "alpine" in runtime_stage_base_image %} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					ENV SSL_CERT_DIR=/etc/ssl/certs | 
					 | 
					 | 
					ENV SSL_CERT_DIR=/etc/ssl/certs | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -252,8 +254,8 @@ RUN [ "cross-build-end" ] | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{% endif %} | 
					 | 
					 | 
					{% endif %} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					VOLUME /data | 
					 | 
					 | 
					VOLUME /data | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					EXPOSE 80 | 
					 | 
					 | 
					EXPOSE $ROCKET_PORT | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					EXPOSE 3012 | 
					 | 
					 | 
					EXPOSE $WEBSOCKET_PORT | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					# Copies the files from the context (Rocket.toml file and web-vault) | 
					 | 
					 | 
					# Copies the files from the context (Rocket.toml file and web-vault) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					# and the binary from the "build" stage to the current stage | 
					 | 
					 | 
					# and the binary from the "build" stage to the current stage | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |