Jack Lucas | e60d88b | 2018-12-12 16:48:41 -0500 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # org.onap.dcae |
| 3 | # ================================================================================ |
Jack Lucas | 40ee89a | 2020-02-11 11:50:07 -0500 | [diff] [blame] | 4 | # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved. |
Jack Lucas | 2446f49 | 2021-06-09 15:35:45 -0400 | [diff] [blame] | 5 | # Copyright (c) 2021 J. F. Lucas. All rights reserved. |
Jack Lucas | e60d88b | 2018-12-12 16:48:41 -0500 | [diff] [blame] | 6 | # ================================================================================ |
| 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 Lucas | 2446f49 | 2021-06-09 15:35:45 -0400 | [diff] [blame] | 20 | FROM node:14.17.0-alpine3.13 |
Jack Lucas | 40ee89a | 2020-02-11 11:50:07 -0500 | [diff] [blame] | 21 | RUN mkdir -p /opt/app \ |
Jack Lucas | 2446f49 | 2021-06-09 15:35:45 -0400 | [diff] [blame] | 22 | && adduser -D -h /opt/app health |
Jack Lucas | 2832ba2 | 2018-04-20 13:22:05 +0000 | [diff] [blame] | 23 | COPY *.js /opt/app/ |
| 24 | COPY package.json /opt/app/ |
Jack Lucas | 40ee89a | 2020-02-11 11:50:07 -0500 | [diff] [blame] | 25 | RUN chown -R health:health /opt/app |
Jack Lucas | 2832ba2 | 2018-04-20 13:22:05 +0000 | [diff] [blame] | 26 | WORKDIR /opt/app |
Jack Lucas | 40ee89a | 2020-02-11 11:50:07 -0500 | [diff] [blame] | 27 | USER health |
| 28 | EXPOSE 8080 |
Jack Lucas | 2832ba2 | 2018-04-20 13:22:05 +0000 | [diff] [blame] | 29 | ENTRYPOINT ["/usr/local/bin/node", "healthcheck.js"] |