blob: 6a546c690c9206d101b62021ac2936f22234f949 [file] [log] [blame]
Jack Lucase60d88b2018-12-12 16:48:41 -05001# ============LICENSE_START=======================================================
2# org.onap.dcae
3# ================================================================================
Jack Lucas40ee89a2020-02-11 11:50:07 -05004# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
Jack Lucas2446f492021-06-09 15:35:45 -04005# Copyright (c) 2021 J. F. Lucas. All rights reserved.
Jack Lucase60d88b2018-12-12 16:48:41 -05006# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END=========================================================
19#
Jack Lucas2446f492021-06-09 15:35:45 -040020FROM node:14.17.0-alpine3.13
Jack Lucas40ee89a2020-02-11 11:50:07 -050021RUN mkdir -p /opt/app \
Jack Lucas2446f492021-06-09 15:35:45 -040022 && adduser -D -h /opt/app health
Jack Lucas2832ba22018-04-20 13:22:05 +000023COPY *.js /opt/app/
24COPY package.json /opt/app/
Jack Lucas40ee89a2020-02-11 11:50:07 -050025RUN chown -R health:health /opt/app
Jack Lucas2832ba22018-04-20 13:22:05 +000026WORKDIR /opt/app
Jack Lucas40ee89a2020-02-11 11:50:07 -050027USER health
28EXPOSE 8080
Jack Lucas2832ba22018-04-20 13:22:05 +000029ENTRYPOINT ["/usr/local/bin/node", "healthcheck.js"]