- adapt nginx config to work both in docker and k8s, using env vars to set urls
backend: additional fixes:
- use env vars with nginx config
- fix settings api route
- when sending e-mail, use the Host header for verification urls when available
- prepare Dockerfile with full build from scratch in image, (disabled 'yarn install' for faster builds for now)
- fix accept invite api for existing user to /archives/accept-invite/{token}
		
	
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			448 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			448 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM node:16 as build
 | |
| 
 | |
| WORKDIR /app
 | |
| COPY . .
 | |
| # disabled to speed up build, assuming built locally
 | |
| #RUN yarn
 | |
| RUN yarn build
 | |
| 
 | |
| FROM nginx
 | |
| 
 | |
| COPY --from=build /app/dist /usr/share/nginx/html
 | |
| COPY --from=build /app/nginx.conf.template /etc/nginx/templates/
 | |
| 
 | |
| #COPY ./dist /usr/share/nginx/html
 | |
| #COPY ./nginx.conf.template /etc/nginx/templates/
 | |
| 
 | |
| RUN rm /etc/nginx/conf.d/*
 | |
| 
 | |
| RUN mkdir -p /etc/nginx/resolvers; echo "" > /etc/nginx/resolvers/resolvers.conf
 | |
| 
 |