Skip to content

Commit b2678eb

Browse files
Merge pull request #357 from kaleido-io/firefly-go-dockerfile
[fabric] Dockerfile for Compiling firefly-go for Linux
2 parents 15fc491 + ecfb494 commit b2678eb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM golang:1.16
2+
3+
WORKDIR /app
4+
COPY firefly.go go.mod go.sum ./
5+
COPY chaincode/ ./chaincode/
6+
RUN ls -la ./ \
7+
&& GO111MODULE=on GOOS=linux CGO_ENABLED=0 go build -o firefly.bin firefly.go
8+

0 commit comments

Comments
 (0)