-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (24 loc) · 1004 Bytes
/
Dockerfile
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
27
28
29
30
31
32
FROM jbarlow83/ocrmypdf-tess4:latest
MAINTAINER Suyash Agrawal <[email protected]>
USER root
ADD https://github.com/tesseract-ocr/tessdata/raw/master/equ.traineddata \
https://github.com/tesseract-ocr/tessdata_fast/raw/master/eng.traineddata \
https://github.com/tesseract-ocr/tessdata_fast/raw/master/hin.traineddata \
https://github.com/tesseract-ocr/tessdata_fast/raw/master/osd.traineddata \
/usr/share/tesseract-ocr/4.00/tessdata/
RUN apt-get update \
&& apt-get autoremove -y \
&& apt-get install -y --no-install-recommends curl\
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
ENV PROJECT_DIR=/home/docker/app \
UPLOAD_DIR=/home/docker/app/uploads \
APP_PORT=3000
WORKDIR $PROJECT_DIR
VOLUME $UPLOAD_DIR
COPY package.json $PROJECT_DIR
RUN npm install
COPY . $PROJECT_DIR
EXPOSE $APP_PORT
ENTRYPOINT ["/home/docker/app/docker_wrapper.sh"]