From 65238b53c6947c509b0b70169a56aba74c54a630 Mon Sep 17 00:00:00 2001 From: dlamarmorgan Date: Tue, 16 Jan 2024 16:07:36 -0800 Subject: [PATCH] pkg/files/docker: add build arg for buildTimestamp buildTimestamp build arg cannot be empty or the storagenode container will fail. Change-Id: Ib8d01b53f1cb7e3adac95a122fbc14263d824260 --- pkg/files/docker/storj.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/files/docker/storj.Dockerfile b/pkg/files/docker/storj.Dockerfile index 4d7c3fc..eff7e75 100644 --- a/pkg/files/docker/storj.Dockerfile +++ b/pkg/files/docker/storj.Dockerfile @@ -41,7 +41,11 @@ RUN if [ -z "$SKIP_FRONTEND_BUILD" ] ; then env env GO111MODULE=on GOOS=js GOARC RUN --mount=type=cache,target=/var/lib/storj/go/pkg/mod,mode=777,uid=1000 \ --mount=type=cache,target=/var/lib/storj/.cache/go-build,mode=777,uid=1000 \ go install ./cmd/... \ - && go install -ldflags "-X storj.io/private/version.buildRelease=false -X storj.io/private/version.buildVersion=v0.0.0" ./cmd/storagenode/... + && go install -ldflags \ + "-X storj.io/private/version.buildRelease=false \ + -X storj.io/private/version.buildVersion=v0.0.0 \ + -X storj.io/private/version.buildTimestamp=0" \ + ./cmd/storagenode/... FROM --platform=$TARGETPLATFORM img.dev.storj.io/storjup/base:20231025-2 AS final ENV STORJ_ADMIN_STATIC_DIR=/var/lib/storj/storj/satellite/admin/ui/build