Created
October 16, 2017 08:59
-
-
Save lucax88x/7501f0238bde607c1559872c53db6a83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt-get update | |
#&& apt-get upgrade \ | |
RUN apt-get install -y sudo apt-utils curl | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
RUN apt-get install -y nodejs tesseract-ocr | |
RUN mkdir -p /data/ocr | |
WORKDIR /data/ocr | |
COPY samples/* samples/ | |
COPY gulpfile.js . | |
COPY package.json . | |
RUN npm install -g gulp && npm install | |
RUN gulp ocr:easy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FROM ubuntu:16.04 as nodejs-custom
RUN apt-get update
#&& apt-get upgrade
RUN apt-get install -y sudo apt-utils curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN apt-get install -y nodejs tesseract-ocr
RUN npm install -g gulp && npm install
FROM nodejs-custom
RUN mkdir -p /data/ocr
WORKDIR /data/ocr
COPY samples/* samples/
COPY gulpfile.js .
COPY package.json .
RUN gulp ocr:easy