mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
docker build arg for branding folder
This commit is contained in:
parent
c98127b82e
commit
925da6c8ed
@ -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 ##########################################################################
|
||||
|
||||
@ -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 ##########################################################################
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user