@@ -169,8 +169,7 @@ RUN yum install -y \
169169COPY ./scripts/openssl_build.sh .
170170RUN ./openssl_build.sh
171171COPY ./scripts/python311_build.sh .
172- RUN ./python311_build.sh && \
173- ln -s /usr/bin/python3.11 /usr/bin/python3
172+ RUN ./python311_build.sh
174173
175174# gProfiler part
176175
@@ -179,24 +178,17 @@ WORKDIR /app
179178RUN yum --setopt=skip_missing_names_on_install=False install -y \
180179 gcc \
181180 curl \
181+ glibc-static \
182182 libicu && \
183183 yum clean all
184184
185185# needed for aarch64 (for staticx)
186186RUN set -e; \
187187 if [ "$(uname -m)" = "aarch64" ]; then \
188- yum install -y glibc-static zlib-devel.aarch64 && \
188+ ln -s /usr/lib64/python3.11/lib-dynload /usr/lib/python3.11/lib-dynload && \
189+ yum install -y zlib-devel.aarch64 && \
189190 yum clean all; \
190191 fi
191- # needed for aarch64, scons & wheel are needed to build staticx
192- RUN set -e; \
193- if [ "$(uname -m)" = "aarch64" ]; then \
194- ln -s /usr/lib64/python3.11/lib-dynload /usr/lib/python3.11/lib-dynload; \
195- fi
196- RUN set -e; \
197- if [ "$(uname -m)" = "aarch64" ]; then \
198- python3 -m pip install --no-cache-dir 'wheel==0.37.0' 'scons==4.2.0' ; \
199- fi
200192
201193# we want the latest pip
202194# hadolint ignore=DL3013
@@ -228,7 +220,8 @@ COPY granulate-utils/glogger granulate-utils/glogger
228220RUN python3 -m pip install --no-cache-dir -r requirements.txt
229221
230222COPY exe-requirements.txt exe-requirements.txt
231- RUN python3 -m pip install --no-cache-dir -r exe-requirements.txt
223+ RUN python3 -m pip install --no-cache-dir -r exe-requirements.txt && \
224+ python3 -m pip install --no-cache-dir --no-binary=:all: staticx==0.14.1 # fixes gprofiler segfault
232225
233226# copy PyPerf, licenses and notice file.
234227RUN mkdir -p gprofiler/resources/ruby && \
@@ -281,6 +274,7 @@ RUN pyinstaller pyinstaller.spec \
281274# crash the staticx bootloader. we don't need them anyway (all files in our staticx tar are uid 0 and we don't need the names translation)
282275COPY scripts/staticx_patch.diff staticx_patch.diff
283276# hadolint ignore=DL3003
277+ # TODO: fix me
284278RUN if [ "$(uname -m)" = "aarch64" ]; then \
285279 git clone -b v0.13.6 https://github.com/JonathonReinhart/staticx.git && \
286280 cd staticx && \
0 commit comments