diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-07-01 07:53:04 +0200 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2023-07-01 08:23:55 +0200 |
commit | 5a1f996e56c2bd5d72974efe04819c5df4395dcf (patch) | |
tree | e559727b5f2db024669c5fb83b37b76f234934ef /Dockerfile.stupgrades | |
parent | 229b6a292c3b7844cbe38470deaca5f7cc63e631 (diff) | |
download | syncthing-5a1f996e56c2bd5d72974efe04819c5df4395dcf.tar.gz syncthing-5a1f996e56c2bd5d72974efe04819c5df4395dcf.zip |
build: Build infrastructure images
Diffstat (limited to 'Dockerfile.stupgrades')
-rw-r--r-- | Dockerfile.stupgrades | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Dockerfile.stupgrades b/Dockerfile.stupgrades index 896d83e82..c4e65b998 100644 --- a/Dockerfile.stupgrades +++ b/Dockerfile.stupgrades @@ -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 stupgrades && go run build.go build stupgrades - FROM alpine +ARG TARGETARCH EXPOSE 8080 -COPY --from=builder /src/stupgrades /bin/stupgrades +COPY stupgrades-linux-${TARGETARCH} /bin/stupgrades ENTRYPOINT [ "/bin/stupgrades" ] |