Skip to content

Commit fd0d246

Browse files
authored
Update Dockerfile for new fxconfig code path (#67)
<!-- Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 DELETE MARKDOWN COMMENTS BEFORE SUBMITTING PULL REQUEST. If this PR introduces a breaking change that affects compatibility with other components: - The PR title must begin with the prefix [BREAKING]. - "Breaking change" must be included in the list below. - Relevant stakeholders must be notified before or immediately after the PR is merged. --> #### Type of change <!--- What type of change? Pick one or more options and delete the others. --> - Updated `Dockerfile` for `fabric-x-tools` to use `fxconfig/cmd` as path for building `fxconfig`. --------- Signed-off-by: pco <pasquale.convertini@ibm.com>
1 parent fbc7b1e commit fd0d246

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
###########################################
1111
FROM golang:1.25 AS builder
1212

13-
# List of CLI tools to build
14-
ARG FABRICX_TOOLS="configtxgen cryptogen configtxlator fxconfig"
15-
1613
# Build environment variables
1714
ENV CGO_ENABLED=1
1815
ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
@@ -27,10 +24,10 @@ RUN go mod download
2724
COPY . .
2825

2926
# Build the binaries
30-
RUN mkdir -p /tmp/bin && \
31-
for tool in $FABRICX_TOOLS; do \
32-
go build -o /tmp/bin/$tool ./tools/$tool; \
33-
done
27+
RUN go build -o /tmp/bin/configtxgen ./tools/configtxgen
28+
RUN go build -o /tmp/bin/cryptogen ./tools/cryptogen
29+
RUN go build -o /tmp/bin/configtxlator ./tools/configtxlator
30+
RUN go build -o /tmp/bin/fxconfig ./tools/fxconfig/cmd
3431

3532
###########################################
3633
# Stage 2: Production runtime image

0 commit comments

Comments
 (0)