Skip to content

Instantly share code, notes, and snippets.

@lucax88x
Created October 16, 2017 08:59
Show Gist options
  • Save lucax88x/7501f0238bde607c1559872c53db6a83 to your computer and use it in GitHub Desktop.
Save lucax88x/7501f0238bde607c1559872c53db6a83 to your computer and use it in GitHub Desktop.
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
@lucax88x
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment