diff --git a/Dockerfile b/Dockerfile index a4ba55d5d..b7a0d2a1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -175,19 +175,24 @@ RUN \ set -o xtrace && \ # Add non-root user wekan useradd --user-group --system --home-dir /home/wekan wekan && \ + \ # OS dependencies apt-get update -y && apt-get install -y --no-install-recommends ${BUILD_DEPS} && \ + \ # Meteor installer doesn't work with the default tar binary, so using bsdtar while installing. # https://github.com/coreos/bugs/issues/1095#issuecomment-350574389 cp $(which tar) $(which tar)~ && \ ln -sf $(which bsdtar) $(which tar) && \ + \ # Download nodejs wget https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \ wget https://nodejs.org/dist/${NODE_VERSION}/SHASUMS256.txt.asc && \ #--------------------------------------------------------------------------------------------- + \ # Verify nodejs authenticity grep ${NODE_VERSION}-${ARCHITECTURE}.tar.gz SHASUMS256.txt.asc | shasum -a 256 -c - && \ rm -f SHASUMS256.txt.asc && \ + \ # Install Node tar xvzf node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \ rm node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && \ @@ -196,10 +201,13 @@ RUN \ ln -s /opt/nodejs/bin/npm /usr/bin/npm && \ mkdir -p /opt/nodejs/lib/node_modules/fibers/.node-gyp /root/.node-gyp/${NODE_VERSION} /home/wekan/.config && \ chown wekan --recursive /home/wekan/.config && \ + \ #DOES NOT WORK: paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303 #paxctl -mC `which node` && \ + \ # Install Node dependencies. Python path for node-gyp. npm install -g npm@${NPM_VERSION} && \ + \ # Change user to wekan and install meteor cd /home/wekan/ && \ chown wekan --recursive /home/wekan && \ @@ -207,9 +215,11 @@ RUN \ gosu wekan:wekan curl https://install.meteor.com/ | /bin/sh && \ mv /root/.meteor /home/wekan/ && \ chown wekan --recursive /home/wekan/.meteor && \ + \ sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' /home/wekan/app/packages/meteor-useraccounts-core/package.js && \ cd /home/wekan/.meteor && \ gosu wekan:wekan /home/wekan/.meteor/meteor -- help; \ + \ # Build app cd /home/wekan/app && \ mkdir -p /home/wekan/.npm && \ @@ -226,8 +236,10 @@ RUN \ # Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc. rm -rf /home/wekan/app_build/bundle/programs/web.browser.legacy && \ mv /home/wekan/app_build/bundle /build && \ + \ # Put back the original tar mv $(which tar)~ $(which tar) && \ + \ # Cleanup apt-get remove --purge -y ${BUILD_DEPS} && \ apt-get autoremove -y && \ @@ -249,9 +261,6 @@ USER wekan STOPSIGNAL SIGKILL -HEALTHCHECK --start-period=30s --interval=30s --timeout=10s --retries=3 \ - CMD curl --fail "http://localhost:$PORT" || exit 1 - #--------------------------------------------------------------------- # https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132 # Add more Node heap: