Skip to content

Commit fdb97c7

Browse files
authored
Merge pull request #45 from KiraCore/bugfix/ml-refactor
fix: add GOPRIVATE and go mod tidy to all Dockerfiles for KiraCore deps
2 parents ec450ca + 32966dd commit fdb97c7

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

proxy/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ WORKDIR /src
44

55
COPY ./ /src/
66

7-
RUN go build -o sai-interax-proxy -buildvcs=false
7+
ENV GOPRIVATE=github.com/KiraCore/*
8+
RUN go mod tidy && go build -o sai-interax-proxy -buildvcs=false
89

910
FROM ubuntu
1011

worker/cosmos/sai-cosmos-indexer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ WORKDIR /src
55

66
COPY ./ /src/
77

8-
RUN go build -o sai-cosmos-indexer -buildvcs=false
8+
ENV GOPRIVATE=github.com/KiraCore/*
9+
RUN go mod tidy && go build -o sai-cosmos-indexer -buildvcs=false
910

1011
FROM ubuntu
1112

worker/cosmos/sai-cosmos-interaction/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ WORKDIR /src
55

66
COPY ./ /src/
77

8-
RUN go build -o sai-cosmos-interaction -buildvcs=false
8+
ENV GOPRIVATE=github.com/KiraCore/*
9+
RUN go mod tidy && go build -o sai-cosmos-interaction -buildvcs=false
910

1011
FROM ubuntu
1112

worker/ethereum/sai-ethereum-contract-interaction/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ WORKDIR /src/
44

55
COPY ./ /src/
66

7-
RUN go build -o sai-eth-interaction -buildvcs=false
7+
ENV GOPRIVATE=github.com/KiraCore/*
8+
RUN go mod tidy && go build -o sai-eth-interaction -buildvcs=false
89

910
FROM ubuntu
1011

worker/ethereum/sai-ethereum-indexer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ WORKDIR /src/cmd/app
55

66
COPY ./ /src/
77

8-
RUN go build -o sai-eth-indexer -buildvcs=false
8+
ENV GOPRIVATE=github.com/KiraCore/*
9+
RUN go mod tidy && go build -o sai-eth-indexer -buildvcs=false
910

1011
FROM ubuntu
1112

worker/sai-storage-mongo/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ WORKDIR /src/
55

66
COPY ./ /src/
77

8-
RUN go build -o sai-storage-bin -buildvcs=false
8+
ENV GOPRIVATE=github.com/KiraCore/*
9+
RUN go mod tidy && go build -o sai-storage-bin -buildvcs=false
910

1011
FROM ubuntu
1112

0 commit comments

Comments
 (0)