-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Pre-build binaries for infrastructure images
Building dual-architecture images under emulation takes a thousand years.
- Loading branch information
Showing
4 changed files
with
22 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
ARG GOVERSION=latest | ||
FROM golang:$GOVERSION AS builder | ||
|
||
WORKDIR /src | ||
COPY . . | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV BUILD_HOST=syncthing.net | ||
ENV BUILD_USER=docker | ||
RUN rm -f stcrashreceiver && go run build.go build stcrashreceiver | ||
|
||
FROM alpine | ||
ARG TARGETARCH | ||
|
||
EXPOSE 8080 | ||
|
||
COPY --from=builder /src/stcrashreceiver /bin/stcrashreceiver | ||
COPY stcrashreceiver-linux-${TARGETARCH} /bin/stcrashreceiver | ||
|
||
ENTRYPOINT [ "/bin/stcrashreceiver" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters