Skip to content

Commit 4cd5dc7

Browse files
author
brady.ouren
committed
chore(fix): dockerfile build
1 parent cc57866 commit 4cd5dc7

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docker/devnet/Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
FROM --platform=$BUILDPLATFORM rust:1.68 as builder
2-
# FROM --platform=linux/amd64 rust:1.68 as builder
1+
FROM --platform=$BUILDPLATFORM rust:1.68-alpine as builder
32

43
ARG CLARINET_VERSION=v2.8.0
54
WORKDIR /usr/src/clarinet
65

7-
RUN apt-get update && apt-get install -y \
6+
RUN apk add --no-cache \
87
git \
9-
&& rm -rf /var/lib/apt/lists/*
8+
build-base \
9+
curl \
10+
pkgconfig
1011

1112
# building from source because I wasn't able to get the platform working from binary
12-
RUN git clone https://github.com/hirosystems/clarinet.git . && \
13+
RUN git clone https://github.com/hirosystems/clarinet.git && \
14+
cd clarinet && \
1315
git checkout main && \
1416
cargo build --release
1517

1618
# Final stage (using Docker-in-Docker)
17-
# FROM --platform=linux/amd64 docker:dind
1819
FROM --platform=$BUILDPLATFORM docker:dind
1920

2021
# Install necessary packages
@@ -31,7 +32,7 @@ RUN apk add --no-cache \
3132
RUN usermod -aG docker root
3233

3334
# Copy Clarinet binary from builder stage
34-
COPY --from=builder /usr/src/clarinet/target/release/clarinet /usr/local/bin/clarinet
35+
COPY --from=builder /usr/src/clarinet/clarinet/target/release/clarinet /usr/local/bin/clarinet
3536

3637
WORKDIR /app
3738

@@ -45,6 +46,7 @@ EXPOSE 20443
4546
EXPOSE 18443
4647
# Postgres
4748
EXPOSE 5490
49+
EXPOSE 5432
4850

4951
# Copy Clarinet config files
5052
COPY Clarinet.toml .

docker/devnet/settings/Devnet.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ stacks_api_events_port = 3700
9696
# bitcoin_explorer_port = 8001
9797
# stacks_explorer_port = 8000
9898
# postgres_port = 5432
99-
# postgres_port = 5490
99+
postgres_port = 5490
100100
# postgres_username = "postgres"
101101
# postgres_password = "postgres"
102102
# postgres_database = "postgres"

0 commit comments

Comments
 (0)