All Downloads are FREE. Search and download functionalities are using the official Maven repository.

customization.Dockerfile Maven / Gradle / Ivy

There is a newer version: 5.3.1
Show newest version
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