Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
RUN npm install
COPY tsconfig.json rollup.config.js ./
COPY src ./src
+COPY src/assets/authorization-tags-template.json ./src/assets/authorization-tags.json
COPY docker/config.json ./src/assets/config.json
RUN npm run build
[ -z $emobility_server_type ] && { echo "emobility env server type variable not found, exiting"; exit 1; }
[ -z $emobility_service_type ] && { echo "emobility env service type variable not found, exiting"; exit 1; }
- cp $emobility_install_dir/src/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/assets/config.json
+ cp $emobility_install_dir/dist/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/assets/config.json
+ cp $emobility_install_dir/dist/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape-tags.json $emobility_install_dir/dist/assets/authorization-tags.json
else
echo "no emobility env defined, start with default configuration"
fi