🔨 Compile on build

This commit is contained in:
Timmo 2019-09-01 00:24:46 +01:00
parent 9d23c5eb21
commit 79adbb3589
2 changed files with 3 additions and 2 deletions

View file

@ -10,11 +10,11 @@ COPY rootfs /
RUN \
apk add --no-cache --virtual .build-dependencies \
git=2.22.0-r0 \
yarn=1.16.0-r0 \
\
&& apk add --no-cache \
nginx=1.16.1-r0 \
nodejs-current=12.4.0-r0 \
yarn=1.16.0-r0 \
\
# TODO: Replace with release tag
&& git clone --branch "master" --depth=1 \
@ -30,6 +30,7 @@ RUN \
\
&& cd /opt/panel \
&& yarn install \
&& yarn compile \
\
&& yarn cache clean \
&& apk del --purge .build-dependencies \

View file

@ -16,4 +16,4 @@ export LOG_LEVEL
export SSL_SUPPRESS_WARNING
export SUPPRESS_ADDRESS
exec yarn run compile && node lib/
exec node lib/