mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
2ffb1edd1f
* fix go version in dockerfile * mix frequently occuring errors * add missed import * fix minor validator vesting sim bug * fix auction sim bug * fix docker build * add todo from sim failure * tidy up dockerfile * update docs, add dockerignore to speed up builds * Update simulations/README.md Co-authored-by: Kevin Davis <karzak@users.noreply.github.com> * add stack traces to logs for easier debugging * replace root func with sdk version Co-authored-by: Kevin Davis <karzak@users.noreply.github.com> Co-authored-by: karzak <kjydavis3@gmail.com>
32 lines
761 B
Docker
32 lines
761 B
Docker
FROM golang:1.13-alpine AS build-env
|
|
|
|
# Set up dependencies
|
|
# bash for debugging
|
|
# git, make for installation
|
|
# libc-dev, gcc, linux-headers, eudev-dev are used for cgo and ledger installation (possibly)
|
|
RUN apk add bash git make libc-dev gcc linux-headers eudev-dev jq
|
|
|
|
# Install aws cli
|
|
RUN apk add python py-pip
|
|
RUN pip install awscli
|
|
|
|
# Set working directory for the build
|
|
WORKDIR /root/kava
|
|
# default home directory is /root
|
|
|
|
# Download dependencies before adding source files to speed up build times
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod download
|
|
|
|
# Add source files
|
|
COPY app app
|
|
COPY cli_test cli_test
|
|
COPY cmd cmd
|
|
COPY app app
|
|
COPY x x
|
|
COPY Makefile .
|
|
|
|
COPY simulations simulations
|
|
|
|
# kvd and kcli binaries are not necessary for running the simulations |