From 295d7ea6755928e66422a3864adab16584760b20 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 27 Sep 2022 22:08:19 +0200 Subject: [PATCH] Move assets to own Dockerfile --- core/admin/assets/Dockerfile | 14 ++++++++++++++ core/admin/assets/{ => content}/app.css | 0 core/admin/assets/{ => content}/app.js | 0 core/admin/assets/{ => content}/mailu.png | Bin core/admin/{ => assets/content}/package.json | 0 core/admin/assets/{ => content}/vendor.js | 0 core/admin/{ => assets/content}/webpack.config.js | 0 7 files changed, 14 insertions(+) create mode 100644 core/admin/assets/Dockerfile rename core/admin/assets/{ => content}/app.css (100%) rename core/admin/assets/{ => content}/app.js (100%) rename core/admin/assets/{ => content}/mailu.png (100%) rename core/admin/{ => assets/content}/package.json (100%) rename core/admin/assets/{ => content}/vendor.js (100%) rename core/admin/{ => assets/content}/webpack.config.js (100%) diff --git a/core/admin/assets/Dockerfile b/core/admin/assets/Dockerfile new file mode 100644 index 00000000..d799fa4f --- /dev/null +++ b/core/admin/assets/Dockerfile @@ -0,0 +1,14 @@ +# syntax=docker/dockerfile-upstream:1.4.3 + +FROM node:16-alpine3.16 + +COPY content ./ +RUN set -euxo pipefail \ + && npm config set update-notifier false \ + && npm install --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; \ + done \ + && node_modules/.bin/webpack-cli --color + diff --git a/core/admin/assets/app.css b/core/admin/assets/content/app.css similarity index 100% rename from core/admin/assets/app.css rename to core/admin/assets/content/app.css diff --git a/core/admin/assets/app.js b/core/admin/assets/content/app.js similarity index 100% rename from core/admin/assets/app.js rename to core/admin/assets/content/app.js diff --git a/core/admin/assets/mailu.png b/core/admin/assets/content/mailu.png similarity index 100% rename from core/admin/assets/mailu.png rename to core/admin/assets/content/mailu.png diff --git a/core/admin/package.json b/core/admin/assets/content/package.json similarity index 100% rename from core/admin/package.json rename to core/admin/assets/content/package.json diff --git a/core/admin/assets/vendor.js b/core/admin/assets/content/vendor.js similarity index 100% rename from core/admin/assets/vendor.js rename to core/admin/assets/content/vendor.js diff --git a/core/admin/webpack.config.js b/core/admin/assets/content/webpack.config.js similarity index 100% rename from core/admin/webpack.config.js rename to core/admin/assets/content/webpack.config.js