mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-29 20:25:43 +08:00
Fix Dockerfile not cascading prom feature flag
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -7,17 +7,20 @@ COPY . .
|
||||
RUN rustup target add x86_64-unknown-linux-musl && \
|
||||
apt-get update && apt-get install -y git musl-tools
|
||||
|
||||
RUN CC=musl-gcc \
|
||||
CC_x86_64_unknown_linux_musl=musl-gcc \
|
||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
|
||||
cargo build --features "monitoring_prom" --release --target x86_64-unknown-linux-musl --workspace=./
|
||||
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 cd /src/target/x86_64-unknown-linux-musl/release && \
|
||||
mkdir /out && \
|
||||
cp blockstack-core /out && cp blockstack-cli /out && cp clarity-cli /out && cp stacks-node /out
|
||||
RUN mkdir /out
|
||||
|
||||
RUN cd testnet/stacks-node && cargo build --features "monitoring_prom" --release --target x86_64-unknown-linux-musl
|
||||
RUN cd testnet/bitcoin-neon-controller && cargo build --release --target x86_64-unknown-linux-musl
|
||||
|
||||
RUN cp target/x86_64-unknown-linux-musl/release/stacks-node /out
|
||||
RUN cp target/x86_64-unknown-linux-musl/release/bitcoin-neon-controller /out
|
||||
|
||||
FROM alpine
|
||||
|
||||
COPY --from=build /out/ /bin/
|
||||
|
||||
CMD ["stacks-node", "neon"]
|
||||
CMD ["stacks-node", "argon"]
|
||||
Reference in New Issue
Block a user