-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prod dockerfile and new entrypoint
- Loading branch information
1 parent
8651cab
commit 71926bc
Showing
3 changed files
with
553 additions
and
0 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,28 @@ | ||
FROM golang:1.19-alpine AS build-env | ||
|
||
ARG MONIKER | ||
ENV MONIKER moniker | ||
|
||
ARG tag | ||
ENV TAG tag | ||
|
||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3 lz4 | ||
RUN apk add --no-cache $PACKAGES | ||
|
||
COPY . /go/delivery/defund | ||
|
||
COPY ./devtools/entrypoint.sh / | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
WORKDIR /go/delivery/defund | ||
|
||
RUN git checkout $TAG | ||
|
||
RUN make install | ||
|
||
RUN defundd init $MONIKER | ||
|
||
EXPOSE 26656 26657 1317 9090 | ||
|
||
CMD ["/bin/bash", "/entrypoint.sh"] |
Oops, something went wrong.