summaryrefslogtreecommitdiffstats
path: root/src/monitor/build/Dockerfile
blob: 9ecff1698b0f483b6687e915bc973e7d90010444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang:1.14.1

WORKDIR /go/src/github.com/onap/multicloud-k8s/src/monitor
COPY ./ ./
RUN make all

FROM ubuntu:16.04

WORKDIR /opt/monitor
RUN groupadd -r monitor && useradd -r -g monitor monitor
RUN chown monitor:monitor /opt/monitor -R
COPY --chown=monitor --from=0 /go/src/github.com/onap/multicloud-k8s/src/monitor/monitor ./

USER monitor
ENTRYPOINT ["/opt/monitor/monitor"]