-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM golang:1.9
MAINTAINER onestraw <hexiaowei91@gmail.com>
RUN apt-get -qq update
RUN apt-get install -y libleptonica-dev libtesseract-dev tesseract-ocr
# Load languages
RUN apt-get install -y \
tesseract-ocr-eng \
tesseract-ocr-chi-sim \
tesseract-ocr-chi-tra
ADD . $GOPATH/src/github.com/onestraw/ocrservice
WORKDIR $GOPATH/src/github.com/onestraw/ocrservice
#RUN go get ./...
RUN go get github.com/otiai10/gosseract
RUN go get github.com/gin-gonic/gin
RUN go get github.com/streadway/amqp
RUN go get github.com/sirupsen/logrus
RUN go install github.com/onestraw/ocrservice/worker
RUN go install github.com/onestraw/ocrservice/backend
RUN go install github.com/onestraw/ocrservice/frontend
RUN ln -s $GOPATH/src/github.com/onestraw/ocrservice/frontend/app/ $GOPATH/src/github.com/onestraw/ocrservice/app