mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-31 00:38:08 +08:00 
			
		
		
		
	chore: add volume define in Dockerfile to avoid data lose (#1718)
Add volume define in Dockerfile to protect data Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
		
							parent
							
								
									3b1bab651a
								
							
						
					
					
						commit
						d24632682f
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -34,5 +34,6 @@ EXPOSE 5230 | |||
| 
 | ||||
| # Directory to store the data, which can be referenced as the mounting point. | ||||
| RUN mkdir -p /var/opt/memos | ||||
| VOLUME /var/opt/memos | ||||
| 
 | ||||
| ENTRYPOINT ["./memos", "--mode", "prod", "--port", "5230"] | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue