aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2019-01-31 20:32:08 +0100
committerJakob Borg <jakob@kastelo.net>2019-01-31 20:38:33 +0100
commit15295633320ee0357ba5e6ceb6fc5a1181d8af47 (patch)
treecbc71d8e71501ffed0c458f25219baa14e5c4951 /Dockerfile
parent560587762558a8fe74e58565c7d03f3a91db5086 (diff)
downloadsyncthing-15295633320ee0357ba5e6ceb6fc5a1181d8af47.tar.gz
syncthing-15295633320ee0357ba5e6ceb6fc5a1181d8af47.zip
docker: Build outside GOPATH (fixes #5495)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 9dd896da1..c2df628de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
FROM golang:1.11 AS builder
-WORKDIR /go/src/github.com/syncthing/syncthing
+WORKDIR /src
COPY . .
ENV CGO_ENABLED=0
@@ -16,7 +16,7 @@ VOLUME ["/var/syncthing"]
RUN apk add --no-cache ca-certificates su-exec
-COPY --from=builder /go/src/github.com/syncthing/syncthing/syncthing /bin/syncthing
+COPY --from=builder /src/syncthing /bin/syncthing
ENV PUID=1000 PGID=1000