File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 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
3
2
4
3
ARG CLARINET_VERSION=v2.8.0
5
4
WORKDIR /usr/src/clarinet
6
5
7
- RUN apt-get update && apt-get install -y \
6
+ RUN apk add --no-cache \
8
7
git \
9
- && rm -rf /var/lib/apt/lists/*
8
+ build-base \
9
+ curl \
10
+ pkgconfig
10
11
11
12
# 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 && \
13
15
git checkout main && \
14
16
cargo build --release
15
17
16
18
# Final stage (using Docker-in-Docker)
17
- # FROM --platform=linux/amd64 docker:dind
18
19
FROM --platform=$BUILDPLATFORM docker:dind
19
20
20
21
# Install necessary packages
@@ -31,7 +32,7 @@ RUN apk add --no-cache \
31
32
RUN usermod -aG docker root
32
33
33
34
# 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
35
36
36
37
WORKDIR /app
37
38
@@ -45,6 +46,7 @@ EXPOSE 20443
45
46
EXPOSE 18443
46
47
# Postgres
47
48
EXPOSE 5490
49
+ EXPOSE 5432
48
50
49
51
# Copy Clarinet config files
50
52
COPY Clarinet.toml .
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ stacks_api_events_port = 3700
96
96
# bitcoin_explorer_port = 8001
97
97
# stacks_explorer_port = 8000
98
98
# postgres_port = 5432
99
- # postgres_port = 5490
99
+ postgres_port = 5490
100
100
# postgres_username = "postgres"
101
101
# postgres_password = "postgres"
102
102
# postgres_database = "postgres"
You can’t perform that action at this time.
0 commit comments