mirror of
				https://github.com/UA-Fediland/synapse-admin.git
				synced 2025-10-30 23:38:27 +00:00 
			
		
		
		
	Node 17 current fails due to https://github.com/webpack/webpack/issues/14532. It probably makes sense to use the current LTS version of Node instead of the absolute latest version of Node so these kinds of bleeding edge issues are less likely to happen.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			255 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			255 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Builder
 | |
| FROM node:lts as builder
 | |
| 
 | |
| WORKDIR /src
 | |
| 
 | |
| COPY . /src
 | |
| RUN yarn --network-timeout=100000 install
 | |
| RUN yarn build
 | |
| 
 | |
| 
 | |
| # App
 | |
| FROM nginx:alpine
 | |
| 
 | |
| COPY --from=builder /src/build /app
 | |
| 
 | |
| RUN rm -rf /usr/share/nginx/html \
 | |
|  && ln -s /app /usr/share/nginx/html
 |