evmos/ethermint -> cerc-io/laconicd

This commit is contained in:
0xmuralik
2022-10-13 11:46:53 +05:30
parent a8afd0a79c
commit d35d3c0716
31 changed files with 420 additions and 415 deletions
+31
View File
@@ -0,0 +1,31 @@
FROM golang:stretch as build-env
# Install minimum necessary dependencies
ENV PACKAGES curl make git libc-dev bash gcc
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y $PACKAGES
# Set working directory for the build
WORKDIR /go/src/github.com/cerc-io/laconicd
# Add source files
COPY . .
# build Ethermint
RUN make build-linux
# Final image
FROM golang:1.18 as final
WORKDIR /
RUN apt-get update
# Copy over binaries from the build-env
COPY --from=build-env /go/src/github.com/cerc-io/laconicd/build/laconicd /
COPY --from=build-env /go/src/github.com/cerc-io/laconicd/scripts/start-docker.sh /
EXPOSE 26656 26657 1317 8545 8546
# Run laconicd by default, omit entrypoint to ease using container with laconicd
ENTRYPOINT ["/bin/bash", "-c"]