customization.Dockerfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icm-docker-plugin Show documentation
Show all versions of icm-docker-plugin Show documentation
Intershop Commerce Management Plugins for Docker Integration
ARG BASE_IMAGE
FROM ubuntu:20.04 as BUILD
ARG PACKAGE_FILE
RUN mkdir -p /intershop-prj
# extract the content of mainpkg.tgz to /intershop-prj
# ATTENTION: can not be replaced by a build argument because that lead to just copiing the archive instead of extracting
COPY $PACKAGE_FILE /tmp
RUN mkdir -p /intershop-prj && \
tar -zxvf /tmp/$PACKAGE_FILE -C /intershop-prj && \
rm /tmp/$PACKAGE_FILE && \
mv /intershop-prj/system-conf /intershop-prj/config
FROM $BASE_IMAGE
ARG NAME
COPY --from=BUILD --chown=intershop:intershop /intershop-prj/ /intershop/
USER intershop
# assign customization's name to env-variable CUSTOMIZATION_NAME (used by icm-as-customization-base)
ENV CUSTOMIZATION_NAME=$NAME
# finally let $BASE_IMAGE do it's work
© 2015 - 2025 Weber Informatics LLC | Privacy Policy