no need to clean in intermediate docker layers. also, no need for make inside the dockerfile

pull/1118/head
Willy 2023-02-01 21:41:07 +01:00
parent bd23210e31
commit dfd578140a
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ ARG VERSION
ARG COMMIT
ARG BUILDPLATFORM
ARG TARGETARCH
RUN apk add --update --no-cache libstdc++ gcc g++ make git autoconf \
RUN apk add --update --no-cache libstdc++ gcc g++ git autoconf \
libtool ca-certificates linux-headers wget curl jq && \
update-ca-certificates
@ -33,7 +33,7 @@ ENV CGO_ENABLED 1
COPY . .
COPY --from=frontend /statping/dist/ ./source/dist/
RUN go install github.com/GeertJohan/go.rice/rice@latest
RUN make clean embed
RUN cd source && rice embed-go
RUN go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION} -X main.COMMIT=${COMMIT}" -o statping --tags "netgo linux" ./cmd
RUN chmod a+x statping && mv statping /go/bin/statping
# /go/bin/statping - statping binary