Skip to content
Merged
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
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
###########################################
FROM golang:1.25 AS builder

# List of CLI tools to build
ARG FABRICX_TOOLS="configtxgen cryptogen configtxlator fxconfig"

# Build environment variables
ENV CGO_ENABLED=1
ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
Expand All @@ -27,10 +24,10 @@ RUN go mod download
COPY . .

# Build the binaries
RUN mkdir -p /tmp/bin && \
for tool in $FABRICX_TOOLS; do \
go build -o /tmp/bin/$tool ./tools/$tool; \
done
RUN go build -o /tmp/bin/configtxgen ./tools/configtxgen
RUN go build -o /tmp/bin/cryptogen ./tools/cryptogen
RUN go build -o /tmp/bin/configtxlator ./tools/configtxlator
RUN go build -o /tmp/bin/fxconfig ./tools/fxconfig/cmd

###########################################
# Stage 2: Production runtime image
Expand Down
Loading