Ubuntu 18.04 with installed Mediapipe package from scratch. Also contains iris model.
930
Ubuntu 18.04 with installed Mediapipe package from scratch. Also contains iris model, which official package do not provide.
FROM ubuntu:18.04
WORKDIR /io
WORKDIR /root/mediapipe
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
ffmpeg \
git \
wget \
unzip \
python3-dev \
python3-opencv \
python3-pip \
libopencv-core-dev \
libopencv-highgui-dev \
libopencv-imgproc-dev \
libopencv-video-dev \
libopencv-calib3d-dev \
libopencv-features2d-dev \
software-properties-common && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade setuptools
RUN pip3 install wheel
RUN pip3 install future
RUN pip3 install six==1.14.0
RUN pip3 install tensorflow==1.14.0
RUN pip3 install tf_slim
RUN pip3 install --upgrade pip
RUN ln -s /usr/bin/python3 /usr/bin/python
# Install bazel
ARG BAZEL_VERSION=3.7.2
RUN mkdir /bazel && \
wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\
azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
chmod +x /bazel/installer.sh && \
/bazel/installer.sh && \
rm -f /bazel/installer.sh
# import tensor issue
RUN apt-get update
RUN apt-get install -y gcc-8 g++-8
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
# Install MP
COPY configured_mp/mediapipe/ /root/mediapipe/
RUN pip3 install -r /root/mediapipe/requirements.txt
RUN cd /root/mediapipe
RUN apt install -y python3-dev
RUN apt-get update -q
RUN apt-get upgrade -y
RUN apt install -y cmake
RUN apt install -y protobuf-compiler
RUN apt-get install -y python3-venv
RUN apt install -y libprotobuf-dev
RUN python3 -m venv mp_env
RUN mp_env/bin/pip3 install --upgrade pip
RUN mp_env/bin/pip3 install -r requirements.txt
ENV PATH="/root/mediapipe/mp_env/bin:$PATH"
# RUN mp_env/bin/python3 setup.py gen_protos
# RUN mp_env/bin/python3 setup.py install --link-opencv
############### Commands prefer to use ##########
# > sudo docker run -it --rm --memory="10g" --memory-swap="10g" ubuntu18_mp
# > docker build --file './Dockerfile' --tag 'ubuntu18_mp' .
# > docker image rm --force ubuntu18_mp
#################################################
Folder configured_mp here (google drive)
Content type
Image
Digest
Size
1.4 GB
Last updated
over 5 years ago
docker pull eoastafurov1/ubuntu18_mp