You've already forked dockerfiles
							
							
				mirror of
				https://github.com/vimagick/dockerfiles.git
				synced 2025-10-30 23:47:48 +02:00 
			
		
		
		
	update tesseract
This commit is contained in:
		| @@ -2,8 +2,8 @@ | ||||
| # Dockerfile for tesseract CJK | ||||
| # | ||||
|  | ||||
| FROM alpine | ||||
| MAINTAINER kev <noreply@easypi.pro> | ||||
| FROM alpine:3 | ||||
| MAINTAINER EasyPi Software Foundation | ||||
|  | ||||
| RUN set -xe \ | ||||
|     && apk add --no-cache \ | ||||
|   | ||||
| @@ -13,8 +13,8 @@ Tesseract doesn't have a built-in GUI, but there are several available from the | ||||
| Quick Start | ||||
| ----------- | ||||
|  | ||||
| ``` | ||||
| $ alias tesseract='docker run --rm -v `pwd`:/data -w /data vimagick/tesseract' | ||||
| ```bash | ||||
| $ alias tesseract='docker run --rm -u $(id -u):$(id -g) -v `pwd`:/data -w /data vimagick/tesseract' | ||||
|  | ||||
| $ tesseract input.png output -l eng --psm 3 | ||||
| $ cat output.txt | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| tesseract: | ||||
|   image: vimagick/tesseract | ||||
|   command: tesseract input.png output -l eng --psm 3 | ||||
|   volumes: | ||||
|     - ./data:/data | ||||
|   working_dir: /data | ||||
| version: "3.8" | ||||
| services: | ||||
|   tesseract: | ||||
|     image: vimagick/tesseract | ||||
|     command: tesseract input.png output -l eng --psm 3 | ||||
|     volumes: | ||||
|       - ./data:/data | ||||
|     working_dir: /data | ||||
|   | ||||
		Reference in New Issue
	
	Block a user