Skip to content

Commit

Permalink
revert the docker file back
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCherepovskyi committed Nov 1, 2024
1 parent 069138a commit a74e489
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
build/

config.local.yaml
Dockerfile
# Coverage
coverage.*
vendor
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM golang:1.22-alpine as buildbase

RUN apk add git build-base

WORKDIR /go/src/github.com/forbole/callisto

ENV GO111MODULE="on"
ENV CGO_ENABLED=1
ENV GOOS="linux"
ENV GOPRIVATE=github.com/*
ENV GONOSUMDB=github.com/*
ENV GONOPROXY=github.com/*

COPY ./go.mod ./go.sum ./
# Read the CI_ACCESS_TOKEN from the .env file
ARG CI_ACCESS_TOKEN
RUN git config --global url."https://olegfomenkodev:${CI_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/"
COPY . .

RUN #go mod vendor
RUN go build -mod=vendor -o /usr/local/bin/bdjuno /go/src/github.com/forbole/callisto/cmd/bdjuno


FROM alpine:3.9

COPY --from=buildbase /usr/local/bin/bdjuno /usr/local/bin/bdjuno

RUN apk add --no-cache ca-certificates

COPY ./genesis.json /genesis/genesis.json

ENTRYPOINT ["bdjuno"]
2 changes: 2 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ chain:
- actions
- upgrade
- nft
- accumulator
- bridge
database:
host: scan-pg
max_idle_connections: 10
Expand Down

0 comments on commit a74e489

Please sign in to comment.