| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  | FROM node:alpine as build-stage
 | 
					
						
							|  |  |  | WORKDIR /app
 | 
					
						
							|  |  |  | COPY ./frontend/package*.json ./
 | 
					
						
							|  |  |  | RUN npm install
 | 
					
						
							|  |  |  | COPY ./frontend/ .
 | 
					
						
							|  |  |  | RUN npm run build
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-01 22:33:19 -09:00
										 |  |  | FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
 | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  | 
 | 
					
						
							|  |  |  | RUN apt-get update -y && \
 | 
					
						
							|  |  |  |     apt-get install -y python-pip python-dev
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # We copy just the requirements.txt first to leverage Docker cache
 | 
					
						
							|  |  |  | COPY ./requirements.txt /app/requirements.txt
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | WORKDIR /app
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | RUN pip install -r requirements.txt
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | COPY ./mealie /app
 | 
					
						
							|  |  |  | COPY --from=build-stage /app/dist /app/dist
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-01 22:33:19 -09:00
										 |  |  | CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]
 |