From 4d9807f54f83622191738538ee7f000f83ef1215 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Fri, 4 Oct 2024 11:10:26 +0200 Subject: [PATCH] copy instead of add --- repository/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repository/Dockerfile b/repository/Dockerfile index 8c7fbedc..f895f51d 100644 --- a/repository/Dockerfile +++ b/repository/Dockerfile @@ -11,7 +11,7 @@ ARG ALFRESCO_REPO_EDITION USER root RUN yum install -y unzip -ADD distribution/${ALFRESCO_REPO_ARTIFACT}-*.zip /tmp/ +COPY distribution/${ALFRESCO_REPO_ARTIFACT}-*.zip /tmp/ ENV DISTDIR="/tmp/distribution" RUN unzip /tmp/*.zip -d ${DISTDIR} @@ -31,9 +31,9 @@ RUN sed -i \ -re "s|(appender.rolling.filePattern=)(alfresco.log.%d\{yyyy-MM-dd\})|\1${CATALINA_HOME}/logs\/\2|" \ ${CATALINA_HOME}/webapps/alfresco/WEB-INF/classes/log4j2.properties -ADD amps /tmp/amps -ADD amps_${ALFRESCO_REPO_EDITION} /tmp/amps -ADD libs ${CATALINA_HOME}/lib/ +COPY amps /tmp/amps +COPY amps_${ALFRESCO_REPO_EDITION} /tmp/amps +COPY libs ${CATALINA_HOME}/lib/ RUN if [ -f /tmp/amps/alfresco-aos-module-*.amp ]; then umask 0027; \ unzip ${DISTDIR}/web-server/webapps/ROOT.war -d ${CATALINA_HOME}/webapps/ROOT/; \ cp ${CATALINA_HOME}/webapps/ROOT/META-INF/context.xml ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml; \