forked from cosmos/ibc-go
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR cosmos#266: create Dockerfile for relayer
* add docker file with config exposed * fix comment Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
- Loading branch information
1 parent
ffc10f4
commit b8ec147
Showing
4 changed files
with
54 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM golang:alpine as BUILD | ||
|
||
WORKDIR /relayer | ||
|
||
# Copy the files from host | ||
COPY . . | ||
|
||
# Update and install needed deps prioir to installing the binary. | ||
RUN apk update && \ | ||
apk --no-cache add make=4.2.1-r2 git=2.24.3-r0 && \ | ||
make install | ||
|
||
FROM alpine:edge | ||
|
||
ENV RELAYER /relayer | ||
|
||
RUN addgroup rlyuser && \ | ||
adduser -S -G rlyuser rlyuser -h "$RELAYER" | ||
|
||
USER rlyuser | ||
|
||
# Define working directory | ||
WORKDIR $RELAYER | ||
|
||
# Copy binary from BUILD | ||
COPY --from=BUILD /go/bin/rly /usr/bin/rly | ||
|
||
ENTRYPOINT ["/usr/bin/rly"] | ||
|
||
# Make config available ofr mutaitons | ||
VOLUME [ $RELAYER ] |
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
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