diff --git a/deployment/src/docker/backend.Dockerfile b/deployment/src/docker/backend.Dockerfile index 542632c97..aa73e5c7d 100644 --- a/deployment/src/docker/backend.Dockerfile +++ b/deployment/src/docker/backend.Dockerfile @@ -9,11 +9,13 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE} ################################################################################## FROM $APP_IMAGE_CODE as code +ARG CONFIGURATION_FOLDER=configurations/example + # copy public constants and email templates into the Docker image to brand it -COPY branding/constants/emails.js src/config/ -COPY branding/constants/logos.js src/config/ -COPY branding/constants/metadata.js src/config/ -COPY branding/email/ src/middleware/helpers/email/ +COPY ${CONFIGURATION_FOLDER}/branding/constants/emails.js src/config/ +COPY ${CONFIGURATION_FOLDER}/branding/constants/logos.js src/config/ +COPY ${CONFIGURATION_FOLDER}/branding/constants/metadata.js src/config/ +COPY ${CONFIGURATION_FOLDER}/branding/email/ src/middleware/helpers/email/ ################################################################################## # BUILD ########################################################################## diff --git a/deployment/src/docker/maintenance.Dockerfile b/deployment/src/docker/maintenance.Dockerfile index e7771c533..7050d1aee 100644 --- a/deployment/src/docker/maintenance.Dockerfile +++ b/deployment/src/docker/maintenance.Dockerfile @@ -9,10 +9,12 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE} ################################################################################## FROM $APP_IMAGE_CODE as code +ARG CONFIGURATION_FOLDER=configurations/example + # copy public constants into the Docker image to brand it -COPY branding/static/ static/ -COPY branding/constants/ constants/ -COPY branding/locales/ locales/ +COPY ${CONFIGURATION_FOLDER}/branding/static/ static/ +COPY ${CONFIGURATION_FOLDER}/branding/constants/ constants/ +COPY ${CONFIGURATION_FOLDER}/branding/locales/ locales/ ################################################################################## # BUILD ########################################################################## diff --git a/deployment/src/docker/webapp.Dockerfile b/deployment/src/docker/webapp.Dockerfile index a07695b9a..830779b71 100644 --- a/deployment/src/docker/webapp.Dockerfile +++ b/deployment/src/docker/webapp.Dockerfile @@ -9,15 +9,17 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE} ################################################################################## FROM $APP_IMAGE_CODE as code +ARG CONFIGURATION_FOLDER=configurations/example + # copy public constants into the Docker image to brand it -COPY tools/ tools/ -COPY branding/static/ static/ -COPY branding/constants/ constants/ -COPY branding/locales/html/ locales/html/ -# COPY branding/locales/index.js locales/index.js -COPY branding/locales/*.json locales/tmp/ -COPY branding/assets/styles/imports/ assets/styles/imports/ -COPY branding/assets/fonts/ assets/fonts/ +COPY src/tools/ tools/ +COPY ${CONFIGURATION_FOLDER}/branding/static/ static/ +COPY ${CONFIGURATION_FOLDER}/branding/constants/ constants/ +COPY ${CONFIGURATION_FOLDER}/branding/locales/html/ locales/html/ +# COPY ${CONFIGURATION_FOLDER}/branding/locales/index.js locales/index.js +COPY ${CONFIGURATION_FOLDER}/branding/locales/*.json locales/tmp/ +COPY ${CONFIGURATION_FOLDER}/branding/assets/styles/imports/ assets/styles/imports/ +COPY ${CONFIGURATION_FOLDER}/branding/assets/fonts/ assets/fonts/ RUN apk add --no-cache bash jq