Go has supported PIC builds for a while now, and given the security benefits of using PIC binaries we should really enable them. There also appears to be some indication that non-PIC builds have been interacting oddly on ppc64le (the linker cannot load some shared libraries), and using PIC builds appears to solve this problem. Signed-off-by: Aleksa Sarai <asarai@suse.de> Upstream-commit: 1f4e37cf4bd2f73dc5257d791cc4dba294ddd156 Component: engine
7 lines
339 B
Docker
7 lines
339 B
Docker
# this Dockerfile is solely used for the master image.
|
|
# Please refer to the top-level Makefile for the worker image.
|
|
FROM golang:1.7
|
|
ADD . /go/src/github.com/docker/docker/hack/integration-cli-on-swarm/agent
|
|
RUN go build -buildmode=pie -o /master github.com/docker/docker/hack/integration-cli-on-swarm/agent/master
|
|
ENTRYPOINT ["/master"]
|