You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/resource-provider/Dockerfile
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ ARG COMPUTE_MODE=gpu
3
3
FROM nvidia/cuda:12.0.1-cudnn8-devel-ubuntu22.04 AS base
4
4
WORKDIR /usr/src/app
5
5
ARG NETWORK=testnet
6
+
ARG VERSION
7
+
ARG COMMIT_SHA
6
8
7
9
# Default environment variables
8
10
ENV LOG_LEVEL=info
@@ -28,11 +30,11 @@ COPY . .
28
30
29
31
FROM base AS build-gpu
30
32
RUN nvcc --version && nvcc --ptx -o ./pkg/resourceprovider/cudaminer/keccak.ptx ./pkg/resourceprovider/cudaminer/keccak.cu
31
-
RUN go build -v --tags cuda
33
+
RUN go build -v -tags cuda -ldflags="-X 'github.com/lilypad-tech/lilypad/pkg/system.Version=${VERSION}' -X 'github.com/lilypad-tech/lilypad/pkg/system.CommitSHA=${COMMIT_SHA}'"
32
34
ENV DISABLE_POW=false
33
35
34
36
FROM base AS build-cpu
35
-
RUN go build -v
37
+
RUN go build -v -ldflags="-X 'github.com/lilypad-tech/lilypad/pkg/system.Version=${VERSION}' -X 'github.com/lilypad-tech/lilypad/pkg/system.CommitSHA=${COMMIT_SHA}'"
Copy file name to clipboardExpand all lines: docker/solver/Dockerfile
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ARG network=dev
8
8
9
9
COPY . .
10
10
RUN go mod download && go mod verify
11
-
RUN go build -v .
11
+
RUN go build -v -ldflags="-X 'github.com/lilypad-tech/lilypad/pkg/system.Version=${VERSION}' -X 'github.com/lilypad-tech/lilypad/pkg/system.CommitSHA=${COMMIT_SHA}'"
12
12
RUN go install
13
13
14
14
RUN (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sh
@@ -24,9 +24,9 @@ RUN echo "doppler run --command \"cloudflared tunnel run & lilypad solver --netw
0 commit comments