update link to upper-constraints.txt
[dmaap/datarouter.git] / datarouter-prov / src / main / resources / docker / Dockerfile
1 #########
2 #  ============LICENSE_START====================================================
3 #  org.onap.dmaap
4 #  ===========================================================================
5 #  Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 #  Modifications Copyright (C) 2018 Nokia. All rights reserved.
7 #  Modifications Copyright (C) 2021 Samsung Electronics. All rights reserved.
8 #  ===========================================================================
9 #  Licensed under the Apache License, Version 2.0 (the "License");
10 #  you may not use this file except in compliance with the License.
11 #  You may obtain a copy of the License at
12 #
13 #       http://www.apache.org/licenses/LICENSE-2.0
14 #
15 #  Unless required by applicable law or agreed to in writing, software
16 #  distributed under the License is distributed on an "AS IS" BASIS,
17 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 #  See the License for the specific language governing permissions and
19 #  limitations under the License.
20 #  ============LICENSE_END====================================================
21 #
22 FROM nexus3.onap.org:10001/onap/integration-java17:12.0.0
23
24 COPY /opt /opt
25
26 ARG user=onap
27 ARG group=onap
28
29 USER root
30 RUN apk add --no-cache curl
31
32 EXPOSE 8080 8443
33
34 WORKDIR /opt
35 RUN chmod 0700 startup.sh
36
37 ENTRYPOINT ["sh", "startup.sh"]
38
39 # onap user and group already avaliable in base img
40 RUN chown -R $user:$group /opt/ /var/log
41
42 USER $user