| 
									
										
										
										
											2021-04-20 19:20:32 +02:00
										 |  |  | ARG DRONE_COMMIT="latest" | 
					
						
							|  |  |  | FROM quratorspk/ocrd-galley-core-cuda10.0:$DRONE_COMMIT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ARG PIP_INSTALL="pip install --no-cache-dir" | 
					
						
							| 
									
										
										
										
											2022-03-03 16:59:52 +01:00
										 |  |  | ARG EYNOLLAH_VERSION="0.0.10" | 
					
						
							| 
									
										
										
										
											2021-04-20 19:20:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Build pip installable stuff | 
					
						
							|  |  |  | RUN ${PIP_INSTALL} \ | 
					
						
							| 
									
										
										
										
											2021-05-11 13:28:26 +02:00
										 |  |  |     "eynollah == ${EYNOLLAH_VERSION}" | 
					
						
							| 
									
										
										
										
											2021-04-20 19:20:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Copy OCR models | 
					
						
							| 
									
										
										
										
											2021-04-21 11:35:29 +02:00
										 |  |  | COPY data/eynollah /var/lib/eynollah | 
					
						
							| 
									
										
										
										
											2021-04-20 19:20:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Check pip dependencies | 
					
						
							|  |  |  | RUN pip check | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Default command | 
					
						
							| 
									
										
										
										
											2021-04-22 21:11:49 +02:00
										 |  |  | CMD ["ocrd-eynollah-segment"] |