Use bash instead of Bourne shell
[ccsdk/apps.git] / ms / neng / src / main / docker / Dockerfile
1 #============LICENSE_START=======================================================
2 #  ONAP : CCSDK.apps
3 #  ================================================================================
4 #  Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5 #  ================================================================================
6 #  Licensed under the Apache License, Version 2.0 (the "License");
7 #  you may not use this file except in compliance with the License.
8 #  You may obtain a copy of the License at
9 #  
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #  
12 #  Unless required by applicable law or agreed to in writing, software
13 #  distributed under the License is distributed on an "AS IS" BASIS,
14 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #  See the License for the specific language governing permissions and
16 #  limitations under the License.
17 #============LICENSE_END=========================================================
18
19 #================================================================================
20 # Docker setup for the micro-service
21 #================================================================================
22 #FROM onap/ccsdk-ubuntu-image:0.3.0-SNAPSHOT
23 FROM anapsix/alpine-java:8_jdk
24
25 RUN apk add --no-cache curl
26
27 VOLUME /tmp
28 ADD NetworkElementNameGen.jar app.jar
29 VOLUME /opt/etc
30 #VOLUME /opt/aai
31 ADD opt/etc/ /opt/etc/
32 #ADD /opt/aai/ /opt/aai/
33 ADD startService.sh /startService.sh
34 RUN addgroup -S ccsdk && adduser -S ccsdk -G ccsdk
35 RUN chown ccsdk:ccsdk /startService.sh
36 RUN chown -R ccsdk:ccsdk /opt
37 RUN chmod go+w /tmp
38 RUN chmod 700 /startService.sh
39 USER ccsdk
40 ENTRYPOINT bash /startService.sh
41 EXPOSE 8080