forked from stacks-network/stacks-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug symbols working in alpine with lldb
- Loading branch information
Showing
3 changed files
with
7 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
FROM rust:stretch as build | ||
FROM rust:alpine as build | ||
|
||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
RUN rustup target add x86_64-unknown-linux-musl && \ | ||
apt-get update && apt-get install -y git musl-tools | ||
|
||
ENV CC musl-gcc | ||
ENV CC_x86_64_unknown_linux_musl musl-gcc | ||
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER musl-gcc | ||
RUN apk add --no-cache musl-dev | ||
|
||
RUN mkdir /out | ||
|
||
RUN cd testnet/stacks-node && cargo build --features "monitoring_prom" --target x86_64-unknown-linux-musl | ||
RUN cd testnet/bitcoin-neon-controller && cargo build --target x86_64-unknown-linux-musl | ||
RUN cd testnet/stacks-node && cargo build --features "monitoring_prom" --release | ||
RUN cd testnet/bitcoin-neon-controller && cargo build --release | ||
|
||
RUN cp target/x86_64-unknown-linux-musl/debug/stacks-node /out | ||
RUN cp target/x86_64-unknown-linux-musl/debug/bitcoin-neon-controller /out | ||
RUN cp target/release/stacks-node /out | ||
RUN cp target/release/bitcoin-neon-controller /out | ||
|
||
FROM alpine | ||
|
||
COPY --from=build /out/ /bin/ | ||
|
||
CMD ["stacks-node", "argon"] | ||
CMD ["stacks-node", "argon"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters