summaryrefslogtreecommitdiffstats
path: root/distributions/msb-apigateway/src/main/docker/Dockerfile
blob: 424bdbb16594d243caae127590629637782dced3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Dockerfile - msb-apigateway
FROM nexus3.onap.org:10001/onap/msb/msb_base:latest
COPY msb-apigateway*.tar.gz /usr/src

RUN tar -xzf /usr/src/msb-apigateway*.tar.gz -C /usr/local --strip-components=1; \
	rm /usr/src/msb-apigateway*.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
ENTRYPOINT exec $PWD/startup4docker.sh