mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-30 07:11:50 +00:00
I noticed that running the runes in docs/vendoring.md made a bunch of files which are omitted by modern vndr come back, presumably due to the old version of vndr referenced there. So update the go-compile package to the current version everywhere. Also correct the use of `make` variable syntax (`$(PWD)`) where shell syntax command substitution for `pwd` was desired. Signed-off-by: Ian Campbell <ijc@docker.com>
18 lines
465 B
Docker
18 lines
465 B
Docker
FROM linuxkit/alpine:3744607156e6b67e3e7d083b15be9e7722215e73 AS mirror
|
|
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
RUN apk add --no-cache --initdb -p /out \
|
|
alpine-baselayout \
|
|
busybox \
|
|
git \
|
|
go \
|
|
musl-dev
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
FROM scratch
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
COPY --from=mirror /out/ /
|
|
COPY --from=mirror /go/bin/ /go/bin/
|
|
COPY /compile.sh /compile.sh
|
|
ENTRYPOINT ["/compile.sh"]
|