Static linking with musl!!

This commit is contained in:
Your Name 2025-04-29 23:12:51 +12:00
parent 3b2f936cd2
commit f5fbb85ed5
2 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,8 @@ RUN apk add --no-cache \
build-base \ build-base \
cmake \ cmake \
pkgconfig \ pkgconfig \
bash bash \
musl-dev
WORKDIR /app WORKDIR /app
@ -14,4 +15,7 @@ COPY --chmod=755 docker/dropshell_alpine/_create_dropshell.sh /scripts/
RUN rm -rf build RUN rm -rf build
ENV CXXFLAGS="-static-libstdc++ -static-libgcc"
ENV LDFLAGS="-static"
CMD ["/bin/bash","/scripts/_create_dropshell.sh"] CMD ["/bin/bash","/scripts/_create_dropshell.sh"]

View File

@ -2,9 +2,7 @@ FROM alpine:latest
RUN apk add --no-cache \ RUN apk add --no-cache \
bash \ bash \
nano \ nano
libstdc++ \
libgcc
WORKDIR /app WORKDIR /app