mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
19 lines
318 B
Docker
19 lines
318 B
Docker
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
|
|
|
|
EXPOSE 8080
|
|
|
|
COPY --from=builder /src/stupgrades /bin/stupgrades
|
|
|
|
ENTRYPOINT [ "/bin/stupgrades" ]
|