| 
									
										
										
										
											2023-04-19 17:41:59 +08:00
										 |  |  | FROM  tensorflow/tensorflow:2.5.1
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:32:56 +08:00
										 |  |  | RUN apt-get install make g++ gcc
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:41:59 +08:00
										 |  |  | RUN pip3 install gunicorn
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:32:56 +08:00
										 |  |  | RUN pip3 install setuptools==46.1.3
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:41:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-10 22:06:22 +08:00
										 |  |  | RUN mkdir -p /app
 | 
					
						
							|  |  |  | WORKDIR /app
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:32:56 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-10 22:06:22 +08:00
										 |  |  | COPY requirements.txt /app
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:41:59 +08:00
										 |  |  | RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:32:56 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-10 22:06:22 +08:00
										 |  |  | COPY ./app /app
 | 
					
						
							|  |  |  | EXPOSE 5000
 | 
					
						
							| 
									
										
										
										
											2023-04-19 17:32:56 +08:00
										 |  |  | CMD ["gunicorn", "--bind", ":5000", "server:app"]
 |