mirror of
				https://github.com/ether/etherpad-lite.git
				synced 2025-11-04 10:11:33 +01:00 
			
		
		
		
	docker: build & run the container in production mode
This is leaner (no development dependencies are included in the container) and faster (among other things, assets are minified & compressed).
This commit is contained in:
		
							parent
							
								
									be3d158402
								
							
						
					
					
						commit
						5ade38c86b
					
				@ -15,9 +15,10 @@ LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite"
 | 
				
			|||||||
#   ETHERPAD_PLUGINS="ep_codepad ep_author_neat"
 | 
					#   ETHERPAD_PLUGINS="ep_codepad ep_author_neat"
 | 
				
			||||||
ARG ETHERPAD_PLUGINS=
 | 
					ARG ETHERPAD_PLUGINS=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Set the following to production to avoid installing devDeps
 | 
					# By default, Etherpad container is built and run in "production" mode. This is
 | 
				
			||||||
# this can be done with build args (and is mandatory to build ARM version)
 | 
					# leaner (development dependencies are not installed) and runs faster (among
 | 
				
			||||||
ENV NODE_ENV=development
 | 
					# other things, assets are minified & compressed).
 | 
				
			||||||
 | 
					ENV NODE_ENV=production
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Follow the principle of least privilege: run as unprivileged user.
 | 
					# Follow the principle of least privilege: run as unprivileged user.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
				
			|||||||
@ -16,6 +16,7 @@ docker pull etherpad/etherpad:1.8.0
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
If you want to use a personalized settings file, **you will have to rebuild your image**.
 | 
					If you want to use a personalized settings file, **you will have to rebuild your image**.
 | 
				
			||||||
All of the following instructions are as a member of the `docker` group.
 | 
					All of the following instructions are as a member of the `docker` group.
 | 
				
			||||||
 | 
					By default, the Etherpad Docker image is built and run in `production` mode: no development dependencies are installed, and asset bundling speeds up page load time.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Rebuilding with custom settings
 | 
					### Rebuilding with custom settings
 | 
				
			||||||
Edit `<BASEDIR>/settings.json.docker` at your will. When rebuilding the image, this file will be copied inside your image and renamed to `setting.json`.
 | 
					Edit `<BASEDIR>/settings.json.docker` at your will. When rebuilding the image, this file will be copied inside your image and renamed to `setting.json`.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user