Skip to content

Commit

Permalink
Removing instalation of gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Marciniak committed Oct 12, 2023
1 parent 054ab3a commit cf643a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions build/Dockerfile-multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ ARG MAIN_PKG

ADD . /build

RUN apk update && apk add git

RUN ldFlags="-s -X main.Version=$(git describe --abbrev=0 --tags) -X main.GitCommit=$(git rev-parse --short HEAD) -X main.BuildDate=$(date +%Y-%m-%d-%H:%M)"; \
CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -o bin/linux/${TARGETARCH}/${BINARY_NAME} -ldflags "${ldFlags}" ${MAIN_PKG}

Expand Down
3 changes: 0 additions & 3 deletions build/Dockerfile-multiarch-glibc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ ARG MAIN_PKG

ADD . /build

# We need git, gcc, libc-dev
RUN apk update && apk add --update git gcc libc-dev

# Race needs CGO
# https://github.com/golang/go/issues/51235
RUN ldFlags="-s -X main.Version=$(git describe --abbrev=0 --tags) -X main.GitCommit=$(git rev-parse --short HEAD) -X main.BuildDate=$(date +%Y-%m-%d-%H:%M)"; \
Expand Down

0 comments on commit cf643a6

Please sign in to comment.