mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 17:02:00 +00:00
tools: Move tini to ./tools and convert to multi-stage build
Previously the "tini" contained the entire build. Using the multi-stage build creates a new "tini" base image, which only contains the "/bin/tini". This image can be used as the base image for packages requiring "tini". Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
FROM linuxkit/go-compile:4513068d9a7e919e4ec42e2d7ee879ff5b95b7f5@sha256:bdfadbe3e4ec699ca45b67453662321ec270f2d1a1dbdbf09625776d3ebd68c5
|
||||
|
||||
ENV VIRTSOCK_COMMIT=6b4dec728264e07c41e108caebd6bc2b72559a5f
|
||||
RUN mkdir -p $GOPATH/src/github.com/rneugeba && \
|
||||
cd $GOPATH/src/github.com/rneugeba && \
|
||||
git clone https://github.com/rneugeba/virtsock.git
|
||||
WORKDIR $GOPATH/src/github.com/rneugeba/virtsock
|
||||
RUN git checkout $VIRTSOCK_COMMIT
|
||||
RUN make build/virtsock_stress.linux
|
||||
|
||||
ENTRYPOINT ["cat", "build/virtsock_stress.linux"]
|
@@ -1,3 +0,0 @@
|
||||
FROM scratch
|
||||
COPY . ./
|
||||
CMD ["/bin/tini", "/bin/virtsock_stress", "-s", "-v", "1"]
|
Reference in New Issue
Block a user