From e38e1f905792a2941adcb70c07e464c43b773ec7 Mon Sep 17 00:00:00 2001 From: jtomass Date: Wed, 29 Nov 2017 10:59:23 +0200 Subject: [PATCH] Fix alpine docker image error (#10382) --- scripts/BuildHelpers.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/BuildHelpers.py b/scripts/BuildHelpers.py index 9dd7ab66e0..216f8e1646 100644 --- a/scripts/BuildHelpers.py +++ b/scripts/BuildHelpers.py @@ -142,18 +142,17 @@ def removeDir(subdir): rmtree(join(resultPath, subdir)) def dockerWrap(imageVersion, imageName = "demo-validation"): - dockerFileContent = """FROM jetty:jre8-alpine -MAINTAINER FrameworkTeam - -RUN apk add --update sed - -#Autodeploy folder: -#/var/lib/jetty/webapps/ + dockerFileContent = """FROM jtomass/alpine-jre-bash:latest +LABEL maintainer="FrameworkTeam" COPY ./*.war /var/lib/jetty/webapps/ +USER root +RUN mkdir /opt +RUN chown -R jetty:jetty /opt COPY ./index-generate.sh /opt/ RUN chmod +x /opt/index-generate.sh +USER jetty RUN /opt/index-generate.sh RUN mkdir -p /var/lib/jetty/webapps/root && \ -- 2.39.5