Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
duc-cnzj committed Apr 26, 2024
1 parent 738354a commit 02afd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -29,7 +29,7 @@ COPY --from=web-build /app/build /app/frontend/build
RUN go mod download

RUN if [ "$TARGETARCH" = "arm64" ]; then CC=aarch64-linux-gnu-gcc && CC_FOR_TARGET=gcc-aarch64-linux-gnu && EXTRA_FLAGS='-extldflags "-static"'; fi && \
VERSION_PATH=$(go list -m -f "{{.Path}}")/version && LDFLAGS="-w -s \
VERSION_PATH=$(go list -m -f "{{.Path}}" | grep -v api)/version && LDFLAGS="-w -s \
-X ${VERSION_PATH}.gitBranch=$(git rev-parse --abbrev-ref HEAD) \
-X ${VERSION_PATH}.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
-X ${VERSION_PATH}.gitCommit=$(git rev-parse --short HEAD) \
Expand Down

0 comments on commit 02afd15

Please sign in to comment.