mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 19:54:38 +00:00
Build runc as static pie
This was waiting on the runc update which added ability to add extra flags. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
fe8084d5d1
commit
53d5ea42c4
@ -17,8 +17,7 @@ RUN mkdir -p $GOPATH/src/github.com/opencontainers && \
|
|||||||
git clone https://github.com/opencontainers/runc.git
|
git clone https://github.com/opencontainers/runc.git
|
||||||
WORKDIR $GOPATH/src/github.com/opencontainers/runc
|
WORKDIR $GOPATH/src/github.com/opencontainers/runc
|
||||||
RUN git checkout $RUNC_COMMIT
|
RUN git checkout $RUNC_COMMIT
|
||||||
# TODO static pie, currently no easy way to change build options
|
RUN make static BUILDTAGS="seccomp" EXTRA_FLAGS="-buildmode pie" EXTRA_LDFLAGS="-extldflags \\\"-fno-PIC -static\\\""
|
||||||
RUN make static BUILDTAGS="seccomp"
|
|
||||||
RUN cp runc /usr/bin/
|
RUN cp runc /usr/bin/
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
Loading…
Reference in New Issue
Block a user