document why we use find
This commit is contained in:
parent
febb6e955c
commit
a669d9adac
|
@ -39,13 +39,20 @@ COPY etags.py /src/
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
|
# We use find here because different architectures might be wildly different.
|
||||||
|
# The specific directory is named by the gcc toolchain, which doesn't really
|
||||||
|
# line up here with uname -m. As an example, 32 bit arm libraries can be the
|
||||||
|
# same across arm versions (arm7/arm8 32 bit)
|
||||||
|
# x86_64: /lib/x86_64-linux-gnu
|
||||||
|
# arm64: /lib/aarch64-linux-gnu
|
||||||
|
# arm7: /lib/arm-linux-gnueabihf
|
||||||
RUN true \
|
RUN true \
|
||||||
&& pip3 install -r requirements.txt \
|
&& pip3 install -r requirements.txt \
|
||||||
&& pyinstaller -F etags.py \
|
&& pyinstaller -F etags.py \
|
||||||
&& staticx \
|
&& staticx \
|
||||||
--strip \
|
--strip \
|
||||||
--no-compress \
|
--no-compress \
|
||||||
-l $(find /lib -name libgcc_s.so.1) \
|
-l "$(find /lib -name libgcc_s.so.1 -print -quit)" \
|
||||||
dist/etags dist/app \
|
dist/etags dist/app \
|
||||||
&& chmod 755 dist/app
|
&& chmod 755 dist/app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user