summaryrefslogtreecommitdiffstats
path: root/healthcheck-container/Dockerfile
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2021-06-09 15:35:45 -0400
committerJack Lucas <jflos@sonoris.net>2021-06-09 15:35:45 -0400
commit2446f49ba93061e1ca7e53f3341210fb30d7d243 (patch)
tree2002341337e290b4b692129206c577fcd4a563ff /healthcheck-container/Dockerfile
parent4faf24adf432182f4358313fcf9c074a63eb5f7b (diff)
Move healthcheck to a non-python container
Use an alpine-based node image as the base for the healthcheck container. This image has no python installations, and so eliminates the issue with python2 in the previous version of the container. Also moves to the most recent LTS release of node (14.17.0). Issue-ID: DCAEGEN2-2737 Signed-off-by: Jack Lucas <jflos@sonoris.net> Change-Id: I0ce96af11adc35632ef8ac7ddddd57db1734fe2c
Diffstat (limited to 'healthcheck-container/Dockerfile')
-rw-r--r--healthcheck-container/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/healthcheck-container/Dockerfile b/healthcheck-container/Dockerfile
index 9b884a7..6a546c6 100644
--- a/healthcheck-container/Dockerfile
+++ b/healthcheck-container/Dockerfile
@@ -2,6 +2,7 @@
# org.onap.dcae
# ================================================================================
# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2021 J. F. Lucas. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -16,9 +17,9 @@
# limitations under the License.
# ============LICENSE_END=========================================================
#
-FROM node:12.15.0
+FROM node:14.17.0-alpine3.13
RUN mkdir -p /opt/app \
- && useradd -d /opt/app health
+ && adduser -D -h /opt/app health
COPY *.js /opt/app/
COPY package.json /opt/app/
RUN chown -R health:health /opt/app