mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 07:16:56 +08:00
35 lines
664 B
Docker
35 lines
664 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 ..
|
|
|
|
# Compile the library
|
|
run make
|
|
|
|
# Install the binaries/libraries to your local system (prefix is /usr)
|
|
run make install
|
|
|
|
workdir /data
|
|
|
|
entrypoint ["alpr"]
|