mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Try to make Meteor build time shorter by excluding legacy and cordova.
Thanks to xet7 !
This commit is contained in:
parent
7d920e938b
commit
0d3002f69d
5 changed files with 6 additions and 6 deletions
|
|
@ -7,7 +7,7 @@ LABEL maintainer="wekan"
|
||||||
ENV BUILD_DEPS="apt-utils libarchive-tools gnupg gosu wget curl bzip2 g++ build-essential git ca-certificates python3" \
|
ENV BUILD_DEPS="apt-utils libarchive-tools gnupg gosu wget curl bzip2 g++ build-essential git ca-certificates python3" \
|
||||||
DEBUG=false \
|
DEBUG=false \
|
||||||
NODE_VERSION=v12.16.1 \
|
NODE_VERSION=v12.16.1 \
|
||||||
METEOR_RELEASE=1.9.0 \
|
METEOR_RELEASE=1.10-rc.2 \
|
||||||
USE_EDGE=false \
|
USE_EDGE=false \
|
||||||
METEOR_EDGE=1.5-beta.17 \
|
METEOR_EDGE=1.5-beta.17 \
|
||||||
NPM_VERSION=latest \
|
NPM_VERSION=latest \
|
||||||
|
|
@ -249,7 +249,7 @@ RUN \
|
||||||
chown wekan --recursive /home/wekan/.npm /home/wekan/.config /home/wekan/.meteor && \
|
chown wekan --recursive /home/wekan/.npm /home/wekan/.config /home/wekan/.meteor && \
|
||||||
#gosu wekan:wekan /home/wekan/.meteor/meteor add standard-minifier-js && \
|
#gosu wekan:wekan /home/wekan/.meteor/meteor add standard-minifier-js && \
|
||||||
gosu wekan:wekan npm install && \
|
gosu wekan:wekan npm install && \
|
||||||
gosu wekan:wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build && \
|
gosu wekan:wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build --exclude-archs web.browser.legacy,web.cordova && \
|
||||||
cp /home/wekan/app/fix-download-unicode/cfs_access-point.txt /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js && \
|
cp /home/wekan/app/fix-download-unicode/cfs_access-point.txt /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js && \
|
||||||
#rm /home/wekan/app_build/bundle/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs && \
|
#rm /home/wekan/app_build/bundle/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs && \
|
||||||
chown wekan /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js && \
|
chown wekan /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js && \
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ cd ..
|
||||||
REM del /S /F /Q node_modules
|
REM del /S /F /Q node_modules
|
||||||
call meteor npm install
|
call meteor npm install
|
||||||
REM del /S /F /Q .build
|
REM del /S /F /Q .build
|
||||||
call meteor build .build --directory
|
call meteor build .build --directory --exclude-archs web.browser.legacy,web.cordova
|
||||||
copy fix-download-unicode\cfs_access-point.txt .build\bundle\programs\server\packages\cfs_access-point.js
|
copy fix-download-unicode\cfs_access-point.txt .build\bundle\programs\server\packages\cfs_access-point.js
|
||||||
cd .build\bundle\programs\server
|
cd .build\bundle\programs\server
|
||||||
call meteor npm install
|
call meteor npm install
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ do
|
||||||
rm -rf node_modules .meteor/local
|
rm -rf node_modules .meteor/local
|
||||||
npm install
|
npm install
|
||||||
rm -rf .build
|
rm -rf .build
|
||||||
meteor build .build --directory
|
meteor build .build --directory --exclude-archs web.browser.legacy,web.cordova
|
||||||
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
||||||
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
||||||
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
|
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
meteor npm install
|
meteor npm install
|
||||||
rm -rf .build
|
rm -rf .build
|
||||||
meteor build .build --directory
|
meteor build .build --directory --exclude-archs web.browser.legacy,web.cordova
|
||||||
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
||||||
cd .build/bundle/programs/server
|
cd .build/bundle/programs/server
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,7 @@ parts:
|
||||||
meteor add standard-minifier-js --allow-superuser
|
meteor add standard-minifier-js --allow-superuser
|
||||||
meteor npm install --allow-superuser
|
meteor npm install --allow-superuser
|
||||||
meteor npm install --allow-superuser --save babel-runtime
|
meteor npm install --allow-superuser --save babel-runtime
|
||||||
meteor build .build --directory --allow-superuser
|
meteor build .build --directory --allow-superuser --exclude-archs web.browser.legacy,web.cordova
|
||||||
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
||||||
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
||||||
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
|
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue