FROM python:3.7-slim-buster

MAINTAINER devops@sonymusic.com

ARG REVISION
ARG BUILDTIME
LABEL REVISION=${REVISION}
LABEL BUILDTIME=${BUILDTIME}

ENV APP_USER=sme APP_GROUP=sme
ENV ROOT_USER=root ROOT_GROUP=root

RUN addgroup --quiet --system --gid 1000 ${APP_GROUP} \
    && adduser --system --ingroup ${APP_GROUP} --uid 1000 --home /app ${APP_USER}
