-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix docker-build command (#116)
* build: fix docker-build command * Update docs/quickstart/installation.md Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,23 @@ | ||
FROM golang:alpine AS build-env | ||
FROM golang:stretch AS build-env | ||
|
||
# Set up dependencies | ||
ENV PACKAGES git build-base | ||
|
||
# Set working directory for the build | ||
WORKDIR /go/src/github.com/tharsis/evmos | ||
|
||
# Install dependencies | ||
RUN apk add --update $PACKAGES | ||
RUN apk add linux-headers | ||
RUN apt update | ||
RUN apt install git -y | ||
|
||
# Add source files | ||
COPY . . | ||
|
||
# Make the binary | ||
RUN make build | ||
|
||
# Final image | ||
FROM alpine | ||
FROM golang:stretch | ||
|
||
RUN apt update | ||
RUN apt install ca-certificates jq -y | ||
|
||
# Install ca-certificates | ||
RUN apk add --update ca-certificates jq | ||
WORKDIR /root | ||
|
||
# Copy over binaries from the build-env | ||
COPY --from=build-env /go/src/github.com/tharsis/evmos/build/evmosd /usr/bin/evmosd | ||
|
||
# Run evmosd by default | ||
CMD ["evmosd"] | ||
EXPOSE 26656 26657 1317 9090 | ||
|
||
CMD ["evmosd"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters