mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 18:41:59 -07:00
19 lines
343 B
Docker
19 lines
343 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 stcrashreceiver && go run build.go build stcrashreceiver
|
||
|
|
||
|
FROM alpine
|
||
|
|
||
|
EXPOSE 8080
|
||
|
|
||
|
COPY --from=builder /src/stcrashreceiver /bin/stcrashreceiver
|
||
|
|
||
|
ENTRYPOINT [ "/bin/stcrashreceiver" ]
|