summaryrefslogtreecommitdiffstats
path: root/components/bbs-event-processor/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'components/bbs-event-processor/Dockerfile')
-rw-r--r--components/bbs-event-processor/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/bbs-event-processor/Dockerfile b/components/bbs-event-processor/Dockerfile
index e799bd92..a9e6a898 100644
--- a/components/bbs-event-processor/Dockerfile
+++ b/components/bbs-event-processor/Dockerfile
@@ -1,4 +1,4 @@
-FROM openjdk:8-jre-alpine
+FROM openjdk:11-jre-slim
ARG PROJECT_BUILD_DIR_NAME
ARG FINAL_JAR
@@ -6,11 +6,14 @@ ARG DEPENDENCIES_DIR
ARG DOCKER_ARTIFACT_DIR
#Add a new user and group to allow container to be run as non-root
-RUN addgroup -S bbs-ep && adduser -S -G bbs-ep bbs-ep
+RUN addgroup --system bbs-ep && adduser --system --ingroup bbs-ep bbs-ep
#Copy dependencies and executable jar
WORKDIR ${DOCKER_ARTIFACT_DIR}
COPY ${PROJECT_BUILD_DIR_NAME}/${FINAL_JAR} .
+COPY KeyStore.jks .
+COPY KeyStorePass.txt .
+
#Overcome Docker limitation to put ARG inside ENTRYPOINT
RUN ln -s ${FINAL_JAR} bbs-ep.jar
COPY ${PROJECT_BUILD_DIR_NAME}/${DEPENDENCIES_DIR} ./${DEPENDENCIES_DIR}