4fe3d4fdc01d34b50d90dff30ca9689d87825ca1
[appc/deployment.git] / cdt / src / main / docker / Dockerfile
1 # ============LICENSE_START==========================================
2 # ONAP : APPC
3 # ===================================================================
4 # Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5 # ===================================================================
6 #
7 # Unless otherwise specified, all software contained herein is licensed
8 # under the Apache License, Version 2.0 (the License);
9 # you may not use this software except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #    http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20 # ============LICENSE_END============================================
21
22 # Base Alpine with added packages needed for ONAP
23 FROM httpd:2.4-alpine
24 MAINTAINER APP-C Team (appc@lists.openecomp.org)
25
26 RUN sed -i -e "s/80/18080/" /usr/local/apache2/conf/httpd.conf; \
27 addgroup -S cdt && adduser -S cdt -G cdt
28
29 COPY --chown=cdt:cdt config-design-tool /usr/local/apache2/htdocs/
30
31 COPY --chown=cdt:cdt startCdt.sh /opt/startCdt.sh
32
33 RUN chown -R cdt:cdt /opt; \
34 chown -R cdt:cdt /usr/local/apache2
35
36 USER cdt:cdt