order file dockerfile commands correctly

This commit is contained in:
Ulf Gebhardt 2023-02-24 01:19:21 +01:00
parent 18ccddeaf8
commit ea3ac6f24d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 6 additions and 9 deletions

View File

@ -11,16 +11,14 @@ FROM $APP_IMAGE_CODE as code
ARG CONFIGURATION=example
COPY src/tools/ tools/
# copy public constants into the Docker image to brand it
COPY configurations/${CONFIGURATION}/branding/static/ static/
COPY configurations/${CONFIGURATION}/branding/constants/ constants/
# locales
COPY configurations/${CONFIGURATION}/branding/locales/*.json locales/tmp/
# COPY configurations/${CONFIGURATION}/branding/locales/ locales/
COPY src/tools/ tools/
RUN apk add --no-cache bash jq
RUN tools/merge-locales.sh
##################################################################################

View File

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