aboutsummaryrefslogtreecommitdiffstats
path: root/distributions/msb-discovery/src/main/docker/Dockerfile
blob: 2058233045f62750b0c74056b29a0e7fd520464f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Dockerfile - msb-discover
FROM nexus3.onap.org:10003/onap/msb/msb_base:latest
COPY msb-discover*.tar.gz /usr/src

RUN tar -xzf /usr/src/msb-discover*.tar.gz -C /usr/local --strip-components=1; \
	rm /usr/src/msb-discover*.tar.gz
	
RUN apk add --no-cache shadow sudo && \
    addgroup -g 1000 msb && \
    adduser -D -u 1000 -G msb msb && \
    echo "msb ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/msb && \
    chmod 0440 /etc/sudoers.d/msb && \
    chown -R msb:msb /usr/local
USER msb

WORKDIR /usr/local
EXPOSE 10081
ENTRYPOINT exec $PWD/startup4docker.sh