docker opencv deps

pull/250/head
evelynmitchell 1 year ago
parent 6e6af98e6e
commit 4dd12db686

@ -2,7 +2,7 @@
# ==================================
# Use an official Python runtime as a parent image
FROM python:3.9-slim
RUN apt-get update && apt-get -y install libglib2.0-0; apt-get clean
RUN apt-get update && apt-get -y install libgl1-mesa-dev libglib2.0-0; apt-get clean
RUN pip install opencv-contrib-python-headless
# Set environment variables

@ -2,6 +2,8 @@
# -==================
# Use an official Python runtime as a parent image
FROM python:3.9-slim
RUN apt-get update && apt-get -y install libgl1-mesa-dev libglib2.0-0; apt-get clean
RUN pip install opencv-contrib-python-headless
# Set environment variables to make Python output unbuffered and disable the PIP cache
ENV PYTHONDONTWRITEBYTECODE 1

Loading…
Cancel
Save