mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-18 19:15:19 +00:00
24 lines
615 B
Docker
24 lines
615 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", \
|
||
|
"-f", "/nightly.json->https://build.syncthing.net/guestAuth/repository/download/Release_Nightly/.lastSuccessful/nightly.json", \
|
||
|
"-f", "/syncthing-macos/appcast.xml->https://build.syncthing.net/guestAuth/repository/download/SyncthingMacOS_CreateAppcastXml/.lastSuccessful/appcast.xml" \
|
||
|
]
|
||
|
|