Skip to content

Commit e42d39b

Browse files
committed
Build frontend assets
1 parent 2c1664a commit e42d39b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN \
2020
php82-tokenizer \
2121
php82-xmlreader \
2222
ssmtp && \
23+
apk add --no-cache --virtual=build-dependencies \
24+
npm && \
2325
echo "*** install speedtest-cli ***" && \
2426
if [ -z ${CLI_VERSION+x} ]; then \
2527
CLI_VERSION=$(curl -Ls https://packagecloud.io/ookla/speedtest-cli/debian/dists/bookworm/main/binary-amd64/Packages \
@@ -55,6 +57,7 @@ RUN \
5557
--optimize-autoloader \
5658
--no-dev \
5759
--no-cache && \
60+
npm ci && npm run build && \
5861
echo "**** setup php opcache ****" && \
5962
{ \
6063
echo 'opcache.enable_cli=1'; \
@@ -64,9 +67,12 @@ RUN \
6467
echo 'upload_max_filesize = 100M'; \
6568
echo 'variables_order = EGPCS'; \
6669
} > /etc/php82/conf.d/php-misc.ini && \
70+
echo "**** cleanup ****" && \
71+
apk del --purge build-dependencies && \
6772
rm -rf \
6873
$HOME/.cache \
69-
$HOME/.composer \
74+
$HOME/.npm \
75+
/app/www/node_modules \
7076
/tmp/*
7177

7278
COPY root/ /

Dockerfile.aarch64

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN \
2020
php82-tokenizer \
2121
php82-xmlreader \
2222
ssmtp && \
23+
apk add --no-cache --virtual=build-dependencies \
24+
npm && \
2325
echo "*** install speedtest-cli ***" && \
2426
if [ -z ${CLI_VERSION+x} ]; then \
2527
CLI_VERSION=$(curl -Ls https://packagecloud.io/ookla/speedtest-cli/debian/dists/bookworm/main/binary-arm64/Packages \
@@ -55,6 +57,7 @@ RUN \
5557
--optimize-autoloader \
5658
--no-dev \
5759
--no-cache && \
60+
npm ci && npm run build && \
5861
echo "**** setup php opcache ****" && \
5962
{ \
6063
echo 'opcache.enable_cli=1'; \
@@ -64,9 +67,12 @@ RUN \
6467
echo 'upload_max_filesize = 100M'; \
6568
echo 'variables_order = EGPCS'; \
6669
} > /etc/php82/conf.d/php-misc.ini && \
70+
echo "**** cleanup ****" && \
71+
apk del --purge build-dependencies && \
6772
rm -rf \
6873
$HOME/.cache \
69-
$HOME/.composer \
74+
$HOME/.npm \
75+
/app/www/node_modules \
7076
/tmp/*
7177

7278
COPY root/ /

0 commit comments

Comments
 (0)