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