Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions devenv/sbtc/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM rust:bookworm as clarinet
FROM rust:alpine as clarinet

RUN apt update && apt install -y pkg-config libssl-dev clang && \
rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache g++ musl-dev git openssl-dev clang-dev

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

FROM rust:bookworm as romeo
FROM rust:alpine as romeo

RUN apt update && apt install -y g++ libssl-dev clang libsecp256k1-dev && \
rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache g++ musl-dev git openssl-dev clang-dev libsecp256k1-dev

RUN cargo install --locked cargo-make

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

FROM rust:slim-bookworm
FROM alpine:latest

RUN apt update && apt install -y openssl libsecp256k1-dev curl jq && \
rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache g++ openssl libsecp256k1 curl jq

COPY --from=clarinet /usr/local/cargo/bin/clarinet /usr/local/bin
COPY --from=romeo /usr/local/cargo/bin/sbtc /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion devenv/sbtc/docker/entrypoint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

set -euo >/dev/null

Expand Down
3 changes: 1 addition & 2 deletions devenv/up.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

if [ $? -eq 0 ]
then
if [ $? -eq 0 ]; then
docker compose up -d
else
echo "Build failed, not starting devenv"
Expand Down