Static linking with musl!!
This commit is contained in:
parent
3b2f936cd2
commit
f5fbb85ed5
@ -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"]
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user