FROM python:3.10-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 --system ${APP_GROUP} -gid 1000 \
    && adduser --system ${APP_USER} --ingroup ${APP_GROUP} -uid 1000 --home /app
