[FIX]Syncthing new dockerfile to be adapted
This commit is contained in:
parent
37868cce58
commit
3a93cdca3b
@ -1,13 +1,16 @@
|
|||||||
FROM golang:1.11 AS builder
|
FROM golang:1.11 AS builder
|
||||||
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||||
|
|
||||||
WORKDIR /src
|
ENV VERSION v1.1.0
|
||||||
COPY . .
|
|
||||||
|
RUN mkdir -p /usr/local/go/src/github.com/syncthing/syncthing
|
||||||
|
WORKDIR /usr/local/go/src/github.com/syncthing/syncthing
|
||||||
|
RUN git clone --branch "${VERSION}" --depth 1 https://github.com/syncthing/syncthing .
|
||||||
|
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
ENV BUILD_HOST=syncthing.net
|
ENV BUILD_HOST=syncthing.net
|
||||||
ENV BUILD_USER=docker
|
ENV BUILD_USER=docker
|
||||||
RUN rm -f syncthing && go run build.go -no-upgrade build syncthing
|
RUN rm -f syncthing && go run build.go
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
@ -17,7 +20,7 @@ VOLUME ["/var/syncthing"]
|
|||||||
|
|
||||||
RUN apk add --no-cache ca-certificates su-exec
|
RUN apk add --no-cache ca-certificates su-exec
|
||||||
|
|
||||||
COPY --from=builder /src/syncthing /bin/syncthing
|
COPY --from=builder /usr/local/go/src/github.com/syncthing/syncthing/bin/syncthing /bin/syncthing
|
||||||
|
|
||||||
ENV PUID=1000 PGID=1000
|
ENV PUID=1000 PGID=1000
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user