2022-09-27 22:08:19 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
|
|
|
|
|
|
|
FROM node:16-alpine3.16
|
|
|
|
|
2022-09-29 11:28:44 +02:00
|
|
|
WORKDIR /work
|
|
|
|
|
2022-11-05 00:39:39 +02:00
|
|
|
COPY package.json ./
|
2022-09-29 11:28:44 +02:00
|
|
|
|
2022-09-27 22:08:19 +02:00
|
|
|
RUN set -euxo pipefail \
|
2022-11-05 00:39:39 +02:00
|
|
|
; npm config set update-notifier false \
|
|
|
|
; npm install --no-audit --no-fund \
|
|
|
|
; sed -i 's/#007bff/#55a5d9/' node_modules/admin-lte/build/scss/_bootstrap-variables.scss \
|
|
|
|
; mkdir assets \
|
2023-08-25 20:33:52 +02:00
|
|
|
; 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 ua zh; do \
|
2022-09-27 22:08:19 +02:00
|
|
|
cp node_modules/datatables.net-plugins/i18n/${l#*:}.json assets/${l%:*}.json; \
|
2022-11-05 00:39:39 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
COPY assets/ ./assets/
|
2022-11-14 18:38:10 +02:00
|
|
|
COPY webpack.config.js ./
|
2022-11-05 00:39:39 +02:00
|
|
|
|
|
|
|
RUN set -euxo pipefail \
|
|
|
|
; node_modules/.bin/webpack-cli --color
|