This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree 3 files changed +8
-12
lines changed
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
- FROM rust:bookworm as clarinet
1
+ FROM rust:alpine as clarinet
2
2
3
- RUN apt update && apt install -y pkg-config libssl-dev clang && \
4
- rm -rf /var/lib/apt/lists/*
3
+ RUN apk add --no-cache g++ musl-dev git openssl-dev clang-dev
5
4
6
5
RUN cargo install clarinet-cli --bin clarinet --branch develop --locked --git https://github.com/hirosystems/clarinet.git
7
6
8
- FROM rust:bookworm as romeo
7
+ FROM rust:alpine as romeo
9
8
10
- RUN apt update && apt install -y g++ libssl-dev clang libsecp256k1-dev && \
11
- rm -rf /var/lib/apt/lists/*
9
+ RUN apk add --no-cache g++ musl-dev git openssl-dev clang-dev libsecp256k1-dev
12
10
13
11
RUN cargo install --locked cargo-make
14
12
@@ -19,10 +17,9 @@ ENV RUSTFLAGS "-C target-feature=-crt-static"
19
17
RUN cargo install --locked --path sbtc-cli
20
18
RUN cargo install --locked --path romeo
21
19
22
- FROM rust:slim-bookworm
20
+ FROM alpine:latest
23
21
24
- RUN apt update && apt install -y openssl libsecp256k1-dev curl jq && \
25
- rm -rf /var/lib/apt/lists/*
22
+ RUN apk add --no-cache g++ openssl libsecp256k1 curl jq
26
23
27
24
COPY --from=clarinet /usr/local/cargo/bin/clarinet /usr/local/bin
28
25
COPY --from=romeo /usr/local/cargo/bin/sbtc /usr/local/bin
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env sh
2
2
3
3
set -euo > /dev/null
4
4
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- if [ $? -eq 0 ]
4
- then
3
+ if [ $? -eq 0 ]; then
5
4
docker compose up -d
6
5
else
7
6
echo " Build failed, not starting devenv"
You can’t perform that action at this time.
0 commit comments