| 
									
										
										
										
											2015-11-03 13:07:20 -05:00
										 |  |  | # The base image is the latest 4.x node (LTS) on jessie (debian)
 | 
					
						
							|  |  |  | # -onbuild will install the node dependencies found in the project package.json
 | 
					
						
							|  |  |  | # and copy its content in /usr/src/app, its WORKDIR
 | 
					
						
							|  |  |  | FROM node:4-onbuild
 | 
					
						
							| 
									
										
										
										
											2015-05-21 01:10:56 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ENV NODE_ENV=production \
 | 
					
						
							|  |  |  |     daemon=false \
 | 
					
						
							|  |  |  |     silent=false
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-03 13:07:20 -05:00
										 |  |  | # nodebb setup will ask you for connection information to a redis (default), mongodb then run the forum
 | 
					
						
							|  |  |  | # nodebb upgrade is not included and might be desired
 | 
					
						
							| 
									
										
										
										
											2015-05-21 01:10:56 +02:00
										 |  |  | CMD node app --setup && npm start
 | 
					
						
							| 
									
										
										
										
											2015-11-03 13:07:20 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | # the default port for NodeBB is exposed outside the container
 | 
					
						
							| 
									
										
										
										
											2015-05-21 01:10:56 +02:00
										 |  |  | EXPOSE 4567
 |