add package upgrade and dedicated user to dockerfile

This commit is contained in:
bsod 2022-11-20 00:32:56 +01:00 committed by Hive
parent 02c24b67f7
commit ecfd783299
1 changed files with 4 additions and 1 deletions

View File

@ -3,10 +3,13 @@ WORKDIR /app
ADD ./app/requirements.txt .
RUN pip install -r /app/requirements.txt
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install \
monitoring-plugins \
monitoring-plugins-contrib && \
apt-get clean
RUN useradd monitoring -m
ADD ./app .
USER daemon
USER monitoring