forked from spinnaker/spinnaker-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
21 lines (17 loc) · 914 Bytes
/
Dockerfile.ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This Dockerfile places the python server in /opt/spinnaker-monitoring/bin, and expects
# config to be mounted in /opt/spinnaker-monitoring/config, which includes the
# spinnaker-monitoring.yml file.
FROM ubuntu:bionic
MAINTAINER [email protected]
COPY --from=compile /compiled_sources/spinnaker-monitoring /opt/spinnaker-monitoring/bin
COPY --from=compile /compiled_sources/requirements.txt /opt/spinnaker-monitoring/requirements.txt
RUN apt-get update && apt-get install -y python python2.7 python-pip wget
WORKDIR /opt/spinnaker-monitoring
RUN sed -ie 's/#@ //g' requirements.txt
RUN pip install -r requirements.txt
ENV PYTHONWARNINGS "once"
RUN addgroup spinnaker
RUN adduser --disabled-login --system --ingroup spinnaker spinnaker
USER spinnaker
ENTRYPOINT ["python", "/opt/spinnaker-monitoring/bin"]
CMD ["--config", "/opt/spinnaker-monitoring/config/spinnaker-monitoring.yml", "monitor"]