Quellcode durchsuchen

Use paxctl to fix segfaut on Alpine Linux. Closes #1303

Lauri Ojansivu vor 7 Jahren
Ursprung
Commit
99703035d7
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      Dockerfile

+ 5 - 1
Dockerfile

@@ -12,7 +12,8 @@ ARG ARCHITECTURE
 ARG SRC_PATH
 ARG SRC_PATH
 
 
 # Set the environment variables (defaults where required)
 # Set the environment variables (defaults where required)
-ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates gcc-4.9"
+# paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303
+ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates gcc-4.9 paxctl"
 ENV GOSU_VERSION=1.10
 ENV GOSU_VERSION=1.10
 ENV NODE_VERSION ${NODE_VERSION:-v4.8.4}
 ENV NODE_VERSION ${NODE_VERSION:-v4.8.4}
 ENV METEOR_RELEASE ${METEOR_RELEASE:-1.4.4.1}
 ENV METEOR_RELEASE ${METEOR_RELEASE:-1.4.4.1}
@@ -78,6 +79,9 @@ RUN \
     ln -s /opt/nodejs/bin/node /usr/bin/node && \
     ln -s /opt/nodejs/bin/node /usr/bin/node && \
     ln -s /opt/nodejs/bin/npm /usr/bin/npm && \
     ln -s /opt/nodejs/bin/npm /usr/bin/npm && \
     \
     \
+    # paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303
+    paxctl -mC `which node` && \
+    \
     # Install Node dependencies
     # Install Node dependencies
     npm install -g npm@${NPM_VERSION} && \
     npm install -g npm@${NPM_VERSION} && \
     npm install -g node-gyp && \
     npm install -g node-gyp && \