-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (26 loc) · 918 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM --platform=linux golang:1.21 AS builder
ENV COSMOS_VERSION=v0.47.5
RUN apt-get update && apt-get install -y git curl
RUN apt-get install -y make wget
WORKDIR /root
FROM golang:1.21 as v1
#Install dependencies
RUN apt-get update && apt-get install -y git curl
RUN apt-get install -y make wget
WORKDIR /home
RUN curl https://get.ignite.com/[email protected] | bash
RUN mv ignite /usr/local/bin
RUN ignite version
#Clone the repository
# ENV VERSION=v1.0-betanet
# RUN git clone --branch ${VERSION} https://github.com/bitbadges/bitbadgeschain.git
RUN git clone https://github.com/bitbadges/bitbadgeschain.git
WORKDIR /home/bitbadgeschain
RUN ignite chain build --skip-proto
WORKDIR /
ENV LOCAL=/usr/local
ENV DAEMON_NAME=bitbadgeschaind
ENV DAEMON_HOME=/root/.bitbadgeschain
RUN mv /go/bin/bitbadgeschaind ${LOCAL}/bin/bitbadgeschaind
EXPOSE 26656 26657 26660 6060 9090 1317
ENTRYPOINT [ "bitbadgeschaind" ]