16 lines
		
	
	
		
			348 B
		
	
	
	
		
			Docker
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			348 B
		
	
	
	
		
			Docker
		
	
	
	
| FROM  tensorflow/tensorflow:2.5.1
 | |
| 
 | |
| RUN apt-get install make g++ gcc
 | |
| RUN pip3 install gunicorn
 | |
| RUN pip3 install setuptools==46.1.3
 | |
| 
 | |
| RUN mkdir -p /app
 | |
| WORKDIR /app
 | |
| 
 | |
| COPY requirements.txt /app
 | |
| RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
 | |
| 
 | |
| COPY ./app /app
 | |
| EXPOSE 5000
 | |
| CMD ["gunicorn", "--bind", ":5000", "server:app"]
 |