FROM python:3.7-alpine ENV POETRY_VIRTUALENVS_CREATE=false ADD . /tmp/ RUN cd /tmp && \ apk add gcc && \ pip install --upgrade pip poetry && \ poetry install --no-dev && \ rm -rf * ONBUILD ADD entrypoint-config.yml . ENTRYPOINT ["pyentrypoint"]