| 
									
										
										
										
											2022-11-08 22:02:27 +00:00
										 |  |  | FROM node:18-alpine as builder
 | 
					
						
							| 
									
										
										
										
											2022-07-09 13:42:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-28 13:55:54 +00:00
										 |  |  | WORKDIR /app
 | 
					
						
							|  |  |  | COPY package.json yarn.lock /app/
 | 
					
						
							|  |  |  | COPY src /app/src/
 | 
					
						
							|  |  |  | COPY scripts /app/scripts
 | 
					
						
							|  |  |  | COPY public /app/public
 | 
					
						
							| 
									
										
										
										
											2022-09-27 08:29:42 +00:00
										 |  |  | COPY vite.config.ts index.html /app/
 | 
					
						
							| 
									
										
										
										
											2017-06-23 21:00:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-16 13:50:02 +00:00
										 |  |  | RUN apk add --no-cache jq bash coreutils python3 build-base
 | 
					
						
							| 
									
										
										
										
											2018-03-01 23:14:55 +00:00
										 |  |  | RUN yarn install
 | 
					
						
							| 
									
										
										
										
											2022-06-28 13:55:54 +00:00
										 |  |  | RUN yarn build:deployment
 | 
					
						
							| 
									
										
										
										
											2018-04-16 19:00:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-09 13:42:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-27 22:32:34 +00:00
										 |  |  | FROM nginx:1.23.2-alpine as final
 | 
					
						
							| 
									
										
										
										
											2022-07-09 13:42:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-28 13:55:54 +00:00
										 |  |  | COPY --from=builder /app/dist /usr/share/nginx/html
 | 
					
						
							| 
									
										
										
										
											2022-07-19 23:31:28 +00:00
										 |  |  | COPY docker/funkwhale.conf.template /etc/nginx/templates/default.conf.template
 | 
					
						
							| 
									
										
										
										
											2022-06-28 13:55:54 +00:00
										 |  |  | COPY docker/funkwhale_proxy.conf /etc/nginx/funkwhale_proxy.conf
 | 
					
						
							| 
									
										
										
										
											2022-07-19 23:31:28 +00:00
										 |  |  | COPY docker/entrypoint.sh /docker-entrypoint.d/99-funkwhale.sh
 | 
					
						
							| 
									
										
										
										
											2022-07-09 13:42:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Allow running as non-root for custom setups
 | 
					
						
							|  |  |  | RUN mkdir -p /var/log/nginx /var/cache/nginx /var/run/nginx && \
 | 
					
						
							|  |  |  |     chown -R nginx:nginx /var/log/nginx /var/run/nginx /var/cache/nginx /etc/nginx && \
 | 
					
						
							|  |  |  |     sed -e 's#/var/run/nginx.pid#/var/run/nginx/nginx.pid#' -i /etc/nginx/nginx.conf
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ENV FUNKWHALE_API_HOST=api | 
					
						
							|  |  |  | ENV FUNKWHALE_API_PORT=5000 |