Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit c1b5abd

Browse files
authored
Reintroduce alpine to the sbtc service. (#298)
* don't build in `up.sh` * reintroduce alpine
1 parent eac5a87 commit c1b5abd

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

devenv/sbtc/docker/Dockerfile

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
FROM rust:bookworm as clarinet
1+
FROM rust:alpine as clarinet
22

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
54

65
RUN cargo install clarinet-cli --bin clarinet --branch develop --locked --git https://github.com/hirosystems/clarinet.git
76

8-
FROM rust:bookworm as romeo
7+
FROM rust:alpine as romeo
98

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
1210

1311
RUN cargo install --locked cargo-make
1412

@@ -19,10 +17,9 @@ ENV RUSTFLAGS "-C target-feature=-crt-static"
1917
RUN cargo install --locked --path sbtc-cli
2018
RUN cargo install --locked --path romeo
2119

22-
FROM rust:slim-bookworm
20+
FROM alpine:latest
2321

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
2623

2724
COPY --from=clarinet /usr/local/cargo/bin/clarinet /usr/local/bin
2825
COPY --from=romeo /usr/local/cargo/bin/sbtc /usr/local/bin

devenv/sbtc/docker/entrypoint

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
set -euo >/dev/null
44

devenv/up.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

3-
if [ $? -eq 0 ]
4-
then
3+
if [ $? -eq 0 ]; then
54
docker compose up -d
65
else
76
echo "Build failed, not starting devenv"

0 commit comments

Comments
 (0)