Dockerfile 698 bytes
FROM python:3.8-slim as base
# Setup env
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONFAULTHANDLER 1
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 python3 python-dev python-pip build-essential git -y 
FROM base AS python-deps
# Install pipenv and compilation dependencies
RUN apt-get update && apt-get install -y --no-install-recommends gcc 
# Required for pymemri
RUN pip install fastprogress fastscript ipdb matplotlib nbdev==1.1.5 opencv-python requests tqdm
FROM python-deps as plugin-base
# Setup app
RUN mkdir /tmp/plugin
WORKDIR /tmp/plugin
# Install itself
COPY . .
RUN pip install .
# Install this module
# RUN pip install .
ENTRYPOINT [ "python", "./scripts/main.py" ]