From 768c0cc1cebb7307d7c92b413d21560b1c3a1938 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 29 Sep 2022 11:28:44 +0200 Subject: [PATCH] Fix assets build process --- core/admin/assets/Dockerfile | 7 +++++-- core/admin/assets/content/{ => assets}/app.css | 0 core/admin/assets/content/{ => assets}/app.js | 0 core/admin/assets/content/{ => assets}/mailu.png | Bin core/admin/assets/content/{ => assets}/vendor.js | 0 5 files changed, 5 insertions(+), 2 deletions(-) rename core/admin/assets/content/{ => assets}/app.css (100%) rename core/admin/assets/content/{ => assets}/app.js (100%) rename core/admin/assets/content/{ => assets}/mailu.png (100%) rename core/admin/assets/content/{ => assets}/vendor.js (100%) diff --git a/core/admin/assets/Dockerfile b/core/admin/assets/Dockerfile index d799fa4f..2fb6f9b6 100644 --- a/core/admin/assets/Dockerfile +++ b/core/admin/assets/Dockerfile @@ -2,10 +2,13 @@ FROM node:16-alpine3.16 -COPY content ./ +WORKDIR /work + +COPY content /work + RUN set -euxo pipefail \ && npm config set update-notifier false \ - && npm install --no-fund \ + && npm install --no-audit --no-fund \ && sed -i 's/#007bff/#55a5d9/' node_modules/admin-lte/build/scss/_bootstrap-variables.scss \ && for l in ca da de:de-DE en:en-GB es:es-ES eu fr:fr-FR he hu is it:it-IT ja nb_NO:no-NB nl:nl-NL pl pt:pt-PT ru sv:sv-SE zh; do \ cp node_modules/datatables.net-plugins/i18n/${l#*:}.json assets/${l%:*}.json; \ diff --git a/core/admin/assets/content/app.css b/core/admin/assets/content/assets/app.css similarity index 100% rename from core/admin/assets/content/app.css rename to core/admin/assets/content/assets/app.css diff --git a/core/admin/assets/content/app.js b/core/admin/assets/content/assets/app.js similarity index 100% rename from core/admin/assets/content/app.js rename to core/admin/assets/content/assets/app.js diff --git a/core/admin/assets/content/mailu.png b/core/admin/assets/content/assets/mailu.png similarity index 100% rename from core/admin/assets/content/mailu.png rename to core/admin/assets/content/assets/mailu.png diff --git a/core/admin/assets/content/vendor.js b/core/admin/assets/content/assets/vendor.js similarity index 100% rename from core/admin/assets/content/vendor.js rename to core/admin/assets/content/assets/vendor.js