kz33 / Plan

0 stars 0 forks source link

2018-06 月计划安排 #2

Open kz33 opened 6 years ago

kz33 commented 6 years ago
kz33 commented 6 years ago

FROM ubuntu:16.04

Install basic dependencies

RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ cmake \ git \ wget \ libopencv-dev \ libsnappy-dev \ python-dev \ python-pip \ tzdata \ vim

Install Miniconda for python 3.6

RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ /bin/bash ~/miniconda.sh -b -p /opt/conda && \ rm ~/miniconda.sh

Set timezone

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Set locale

ENV LANG C.UTF-8 LC_ALL=C.UTF-8 ENV PATH /opt/conda/bin:$PATH

RUN apt-get install libzbar0 libzbar-dev -y RUN apt install tesseract-ocr -y \ libtesseract-dev

RUN apt-get install libgl1-mesa-dev -y \ poppler-utils

WORKDIR /root

COPY ./requirements.txt /root/requirements.txt

RUN pip install -r requirements.txt

kz33 commented 6 years ago

requirements.txt