2022-11-19 22:41:21 +01:00
|
|
|
FROM python:3
|
|
|
|
WORKDIR /app
|
|
|
|
ADD ./app/requirements.txt .
|
|
|
|
RUN pip install -r /app/requirements.txt
|
|
|
|
RUN apt-get update && \
|
2022-11-20 00:32:56 +01:00
|
|
|
apt-get -y upgrade && \
|
2022-11-19 22:41:21 +01:00
|
|
|
apt-get -y install \
|
|
|
|
monitoring-plugins \
|
|
|
|
monitoring-plugins-contrib && \
|
|
|
|
apt-get clean
|
|
|
|
|
2022-11-20 00:32:56 +01:00
|
|
|
RUN useradd monitoring -m
|
|
|
|
|
2022-11-19 22:41:21 +01:00
|
|
|
ADD ./app .
|
2022-11-20 00:32:56 +01:00
|
|
|
USER monitoring
|