Skip to content

Commit

Permalink
Add prod dockerfile and new entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
schnetzlerjoe committed Jan 13, 2023
1 parent 8651cab commit 71926bc
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile.prod
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"]
Loading

0 comments on commit 71926bc

Please sign in to comment.