docker build arg for branding folder

This commit is contained in:
Ulf Gebhardt 2023-02-15 13:57:20 +01:00
parent c98127b82e
commit 925da6c8ed
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 21 additions and 15 deletions

View File

@ -9,11 +9,13 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE}
################################################################################## ##################################################################################
FROM $APP_IMAGE_CODE as 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 public constants and email templates into the Docker image to brand it
COPY branding/constants/emails.js src/config/ COPY ${CONFIGURATION_FOLDER}/branding/constants/emails.js src/config/
COPY branding/constants/logos.js src/config/ COPY ${CONFIGURATION_FOLDER}/branding/constants/logos.js src/config/
COPY branding/constants/metadata.js src/config/ COPY ${CONFIGURATION_FOLDER}/branding/constants/metadata.js src/config/
COPY branding/email/ src/middleware/helpers/email/ COPY ${CONFIGURATION_FOLDER}/branding/email/ src/middleware/helpers/email/
################################################################################## ##################################################################################
# BUILD ########################################################################## # BUILD ##########################################################################

View File

@ -9,10 +9,12 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE}
################################################################################## ##################################################################################
FROM $APP_IMAGE_CODE as code FROM $APP_IMAGE_CODE as code
ARG CONFIGURATION_FOLDER=configurations/example
# copy public constants into the Docker image to brand it # copy public constants into the Docker image to brand it
COPY branding/static/ static/ COPY ${CONFIGURATION_FOLDER}/branding/static/ static/
COPY branding/constants/ constants/ COPY ${CONFIGURATION_FOLDER}/branding/constants/ constants/
COPY branding/locales/ locales/ COPY ${CONFIGURATION_FOLDER}/branding/locales/ locales/
################################################################################## ##################################################################################
# BUILD ########################################################################## # BUILD ##########################################################################

View File

@ -9,15 +9,17 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE}
################################################################################## ##################################################################################
FROM $APP_IMAGE_CODE as code FROM $APP_IMAGE_CODE as code
ARG CONFIGURATION_FOLDER=configurations/example
# copy public constants into the Docker image to brand it # copy public constants into the Docker image to brand it
COPY tools/ tools/ COPY src/tools/ tools/
COPY branding/static/ static/ COPY ${CONFIGURATION_FOLDER}/branding/static/ static/
COPY branding/constants/ constants/ COPY ${CONFIGURATION_FOLDER}/branding/constants/ constants/
COPY branding/locales/html/ locales/html/ COPY ${CONFIGURATION_FOLDER}/branding/locales/html/ locales/html/
# COPY branding/locales/index.js locales/index.js # COPY ${CONFIGURATION_FOLDER}/branding/locales/index.js locales/index.js
COPY branding/locales/*.json locales/tmp/ COPY ${CONFIGURATION_FOLDER}/branding/locales/*.json locales/tmp/
COPY branding/assets/styles/imports/ assets/styles/imports/ COPY ${CONFIGURATION_FOLDER}/branding/assets/styles/imports/ assets/styles/imports/
COPY branding/assets/fonts/ assets/fonts/ COPY ${CONFIGURATION_FOLDER}/branding/assets/fonts/ assets/fonts/
RUN apk add --no-cache bash jq RUN apk add --no-cache bash jq