FROM jrottenberg/ffmpeg:4.0-alpine ENV PYTHONUNBUFFERED=1 ENV DOCKER=1 RUN apk add build-base && apk add python3-dev RUN echo "**** install Python ****" && \ apk add --no-cache python3 && \ if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \ \ echo "**** install pip ****" && \ python3 -m ensurepip && \ rm -r /usr/lib/python*/ensurepip && \ pip3 install --no-cache --upgrade pip setuptools wheel && \ if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi COPY requirements.txt /opt/app/requirements.txt WORKDIR /opt/app RUN pip install -r requirements.txt COPY . . ENTRYPOINT ["python", "save.py"] CMD []