Chore: Fix typo in INFO
[externalapi/nbi.git] / Dockerfile
1 #
2 #     Copyright (c) 2018 Orange
3 #
4 #     Licensed under the Apache License, Version 2.0 (the "License");
5 #     you may not use this file except in compliance with the License.
6 #     You may obtain a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #     Unless required by applicable law or agreed to in writing, software
11 #     distributed under the License is distributed on an "AS IS" BASIS,
12 #     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #     See the License for the specific language governing permissions and
14 #     limitations under the License.
15 #
16
17 FROM nexus3.onap.org:10001/onap/integration-java11
18
19 USER onap
20
21 ARG SERVER_PORT
22 ARG PKG_FILENAME=nbi-rest-services-10.0.0-SNAPSHOT.jar
23 ADD target/$PKG_FILENAME /opt/onap/app.jar
24
25 RUN mkdir temptoscafile && chown onap:onap temptoscafile/
26
27
28 ENV SERVER_PORT=${SERVER_PORT:-8080}
29 ENV JAVA_OPTS=${JAVA_OPTS:--Djava.security.egd=file:/dev/./urandom}
30
31 EXPOSE $SERVER_PORT
32 ENTRYPOINT exec java -XX:+UseContainerSupport $JAVA_OPTS -jar /opt/onap/app.jar