Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build frontend assets
  • Loading branch information
thespad committed Dec 21, 2023
commit e42d39b25bd8a38b4c6b414042ce260be539ea7f
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN \
php82-tokenizer \
php82-xmlreader \
ssmtp && \
apk add --no-cache --virtual=build-dependencies \
npm && \
echo "*** install speedtest-cli ***" && \
if [ -z ${CLI_VERSION+x} ]; then \
CLI_VERSION=$(curl -Ls https://packagecloud.io/ookla/speedtest-cli/debian/dists/bookworm/main/binary-amd64/Packages \
Expand Down Expand Up @@ -55,6 +57,7 @@ RUN \
--optimize-autoloader \
--no-dev \
--no-cache && \
npm ci && npm run build && \
echo "**** setup php opcache ****" && \
{ \
echo 'opcache.enable_cli=1'; \
Expand All @@ -64,9 +67,12 @@ RUN \
echo 'upload_max_filesize = 100M'; \
echo 'variables_order = EGPCS'; \
} > /etc/php82/conf.d/php-misc.ini && \
echo "**** cleanup ****" && \
apk del --purge build-dependencies && \
rm -rf \
$HOME/.cache \
$HOME/.composer \
$HOME/.npm \
/app/www/node_modules \
/tmp/*

COPY root/ /
Expand Down
8 changes: 7 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN \
php82-tokenizer \
php82-xmlreader \
ssmtp && \
apk add --no-cache --virtual=build-dependencies \
npm && \
echo "*** install speedtest-cli ***" && \
if [ -z ${CLI_VERSION+x} ]; then \
CLI_VERSION=$(curl -Ls https://packagecloud.io/ookla/speedtest-cli/debian/dists/bookworm/main/binary-arm64/Packages \
Expand Down Expand Up @@ -55,6 +57,7 @@ RUN \
--optimize-autoloader \
--no-dev \
--no-cache && \
npm ci && npm run build && \
echo "**** setup php opcache ****" && \
{ \
echo 'opcache.enable_cli=1'; \
Expand All @@ -64,9 +67,12 @@ RUN \
echo 'upload_max_filesize = 100M'; \
echo 'variables_order = EGPCS'; \
} > /etc/php82/conf.d/php-misc.ini && \
echo "**** cleanup ****" && \
apk del --purge build-dependencies && \
rm -rf \
$HOME/.cache \
$HOME/.composer \
$HOME/.npm \
/app/www/node_modules \
/tmp/*

COPY root/ /
Expand Down