-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update image to Python3 and Ubuntu 18.04
- Loading branch information
1 parent
eaf4676
commit 5db5e54
Showing
3 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
|
||
|
||
FROM ubuntu:18.04 | ||
MAINTAINER Rick Torzynski "[email protected]" | ||
RUN apt-get update -y | ||
RUN apt-get install -y python-pip python-dev build-essential | ||
RUN apt update && apt install -y libsm6 libxext6 | ||
RUN apt-get -y install tesseract-ocr | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install tesseract-ocr \ | ||
&& apt-get install -y python3 python3-distutils python3-pip \ | ||
&& cd /usr/local/bin \ | ||
&& ln -s /usr/bin/python3 python \ | ||
&& pip3 --no-cache-dir install --upgrade pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
RUN apt update \ | ||
&& apt-get install ffmpeg libsm6 libxext6 -y | ||
RUN pip3 install pytesseract | ||
RUN pip3 install opencv-python | ||
RUN pip3 install pillow | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
RUN pip install pillow | ||
RUN pip install pytesseract | ||
RUN pip install opencv-contrib-python | ||
|
||
|
||
RUN pip install -r requirements.txt | ||
ENTRYPOINT ["python"] | ||
CMD ["app.py"] | ||
ENTRYPOINT ["python3"] | ||
CMD ["app.py"] |
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
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