FROM python:slim WORKDIR ./ ARG PUID=1000 ENV USER docker ENV HOMEDIR "/home/${USER}" RUN useradd -u "${PUID}" -m "${USER}" USER ${USER} WORKDIR ${HOMEDIR} COPY . . RUN pip install --no-cache-dir -r requirements.txt CMD [ "python", "./bot.py" ]