mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 22:36:53 +08:00
31 lines
583 B
Docker
31 lines
583 B
Docker
from ubuntu:14.04
|
|
|
|
# Install prerequisites
|
|
run apt-get update && apt-get install -y \
|
|
build-essential \
|
|
cmake \
|
|
curl \
|
|
git \
|
|
libcurl3-dev \
|
|
libleptonica-dev \
|
|
liblog4cplus-dev \
|
|
libopencv-dev \
|
|
libtesseract-dev \
|
|
wget
|
|
|
|
# Copy all data
|
|
copy . /srv/openalpr
|
|
|
|
# Setup the build directory
|
|
run mkdir /srv/openalpr/src/build
|
|
workdir /srv/openalpr/src/build
|
|
|
|
# Setup the compile environment
|
|
run cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc .. && \
|
|
make -j2 && \
|
|
make install
|
|
|
|
workdir /data
|
|
|
|
entrypoint ["alpr"]
|