laconicd/networks/local/laconicnode/Dockerfile

31 lines
770 B
Docker
Raw Normal View History

2022-10-10 10:38:33 +00:00
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
2022-10-13 06:16:53 +00:00
WORKDIR /go/src/github.com/cerc-io/laconicd
2022-10-10 10:38:33 +00:00
# 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
2022-10-13 06:16:53 +00:00
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 /
2022-10-10 10:38:33 +00:00
EXPOSE 26656 26657 1317 8545 8546
2022-10-13 05:53:17 +00:00
# Run laconicd by default, omit entrypoint to ease using container with laconicd
2022-10-10 10:38:33 +00:00
ENTRYPOINT ["/bin/bash", "-c"]