mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-10-31 23:17:27 +00:00 
			
		
		
		
	 646e376698
			
		
	
	
		646e376698
		
			
		
	
	
	
	
		
			
			* update docker image to go 1.19 * update kvtool * add .tool-versions for automagic go version usage * update prtotonet genesis with missing params * update kvtool (fixes evm port exposure) * fix changed error message for insufficient fee * add error message on failed contract deployment * update kvtool (set consensus_params.block.max_gas) * temporarily disable ibc e2e tests * update kvtool to master
		
			
				
	
	
		
			29 lines
		
	
	
		
			732 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			732 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM golang:1.19-alpine AS build-env
 | |
| 
 | |
| # Set up dependencies
 | |
| # bash, jq, curl for debugging
 | |
| # git, make for installation
 | |
| # libc-dev, gcc, linux-headers, eudev-dev are used for cgo and ledger installation
 | |
| RUN apk add bash git make libc-dev gcc linux-headers eudev-dev jq curl
 | |
| 
 | |
| # Set working directory for the build
 | |
| WORKDIR /root/kava
 | |
| # default home directory is /root
 | |
| 
 | |
| # Add source files
 | |
| COPY . .
 | |
| 
 | |
| #ENV LEDGER_ENABLED False
 | |
| 
 | |
| # Mount go build and mod caches as container caches, persisted between builder invocations
 | |
| RUN --mount=type=cache,target=/root/.cache/go-build \
 | |
|     --mount=type=cache,target=/go/pkg/mod \
 | |
|     make install
 | |
| 
 | |
| FROM alpine:3.15
 | |
| 
 | |
| RUN apk add bash jq curl
 | |
| COPY --from=build-env /go/bin/kava /bin/kava
 | |
| 
 | |
| CMD ["kava"]
 |