mirror of
https://github.com/hassio-addons/addon-thelounge.git
synced 2025-05-04 19:11:27 +00:00
🔨 Takes off a whopping 5 MEGABYTES from the add-on size
This commit is contained in:
parent
d398d80871
commit
e327151501
1 changed files with 15 additions and 3 deletions
|
@ -5,13 +5,25 @@ FROM ${BUILD_FROM}
|
|||
# Install packages
|
||||
# hadolint ignore=DL3003
|
||||
RUN \
|
||||
apk add --no-cache \
|
||||
nodejs-current=9.11.1-r2 \
|
||||
apk add --no-cache --virtual .build-dependencies \
|
||||
yarn=1.7.0-r0 \
|
||||
\
|
||||
&& yarn global add thelounge@3.0.1 \
|
||||
&& apk add --no-cache \
|
||||
nodejs-current=9.11.1-r2 \
|
||||
\
|
||||
&& yarn global add \
|
||||
modclean \
|
||||
thelounge@3.0.1 \
|
||||
\
|
||||
&& modclean \
|
||||
--path /usr/local/share/.config/yarn/global \
|
||||
--no-progress \
|
||||
--keep-empty \
|
||||
--run \
|
||||
\
|
||||
&& yarn global remove modclean \
|
||||
&& yarn cache clean \
|
||||
&& apk del --purge .build-dependencies \
|
||||
&& rm -fr /tmp/*
|
||||
|
||||
# Copy root filesystem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue