mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 17:02:00 +00:00
pkgs: Update packages to the latest linuxkit/alpine
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
FROM linuxkit/alpine:e2391e0b164c57db9f6c4ae110ee84f766edc430 as build
|
||||
FROM linuxkit/alpine:0c069d0fd7defddb6e03925fcd4915407db0c9e1 as build
|
||||
|
||||
RUN apk add --no-cache bash go git musl-dev linux-headers make
|
||||
RUN apk add --no-cache bash go git musl-dev linux-headers make patch
|
||||
# Hack to work around an issue with go on arm64 requiring gcc
|
||||
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
||||
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
ENV GITBASE=github.com/google
|
||||
ENV GITREPO=github.com/google/cadvisor
|
||||
ENV COMMIT=v0.36.0
|
||||
|
||||
ADD /static.patch /tmp/
|
||||
|
||||
RUN go get -d ${GITREPO} \
|
||||
RUN mkdir -p /go/src/${GITBASE} \
|
||||
&& cd /go/src/${GITBASE} \
|
||||
&& git clone https://${GITREPO}.git \
|
||||
&& cd /go/src/${GITREPO} \
|
||||
&& git checkout ${COMMIT} \
|
||||
&& patch -p1 build/build.sh </tmp/static.patch \
|
||||
@@ -18,7 +21,7 @@ RUN go get -d ${GITREPO} \
|
||||
&& mv cadvisor /usr/bin/
|
||||
|
||||
|
||||
FROM linuxkit/alpine:e2391e0b164c57db9f6c4ae110ee84f766edc430 AS mirror
|
||||
FROM linuxkit/alpine:0c069d0fd7defddb6e03925fcd4915407db0c9e1 AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
Reference in New Issue
Block a user