Skip to content

Commit

Permalink
pkg/files/docker: add build arg for buildTimestamp
Browse files Browse the repository at this point in the history
buildTimestamp build arg cannot be empty or the storagenode container
will fail.

Change-Id: Ib8d01b53f1cb7e3adac95a122fbc14263d824260
  • Loading branch information
dlamarmorgan committed Jan 17, 2024
1 parent 823714e commit 65238b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/files/docker/storj.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65238b5

Please sign in to comment.