From ecfb494a11ffa6d7cfcd5ab83117e72a36fbcceb Mon Sep 17 00:00:00 2001 From: hfuss Date: Mon, 13 Dec 2021 12:19:48 -0500 Subject: [PATCH] [fabric] Dockerfile for Compiling firefly-go for Linux Signed-off-by: hfuss --- smart_contracts/fabric/firefly-go/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 smart_contracts/fabric/firefly-go/Dockerfile diff --git a/smart_contracts/fabric/firefly-go/Dockerfile b/smart_contracts/fabric/firefly-go/Dockerfile new file mode 100644 index 0000000000..d254a40875 --- /dev/null +++ b/smart_contracts/fabric/firefly-go/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:1.16 + +WORKDIR /app +COPY firefly.go go.mod go.sum ./ +COPY chaincode/ ./chaincode/ +RUN ls -la ./ \ + && GO111MODULE=on GOOS=linux CGO_ENABLED=0 go build -o firefly.bin firefly.go +