ARG UBUNTU_VERSION=16.04
FROM ubuntu:${UBUNTU_VERSION}
# install python3 and python3 dev
RUN apt-get update -y
RUN apt-get install -y python3-pip python3-dev
FROM python:3.6-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
-y libglib2.0-0 libsm6 \
&& apt-get clean; \
apt-get autoclean; \
apt-get autoremove; \
rm -rf /tmp/* /var/tmp/*; \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir opencv-python-headless
Content type
Image
Digest
Size
87.7 MB
Last updated
over 7 years ago
docker pull bkrmdahal/python:3.6-slim-opencv