diff options
author | jtomass <juhani@vaadin.com> | 2017-11-29 10:59:23 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-12-07 12:19:06 +0200 |
commit | fa9cc8041ec1d4bd3a59728d5533785d4d5022bd (patch) | |
tree | 0336f0a343117a5922c67e05d3a4381aa8de533e | |
parent | 94affc85ffa8cad01f48dab8c54b3d782cbcdf36 (diff) | |
download | vaadin-framework-fa9cc8041ec1d4bd3a59728d5533785d4d5022bd.tar.gz vaadin-framework-fa9cc8041ec1d4bd3a59728d5533785d4d5022bd.zip |
Fix alpine docker image error (#10382)
-rw-r--r-- | scripts/BuildHelpers.py | 13 |
1 files 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 && \ |