forked from gardenlinux/gardenlinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (33 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM gcr.io/kaniko-project/executor:latest as kaniko
FROM golang:latest as azure
RUN go get -u golang.org/x/lint/golint \
&& git clone https://github.com/microsoft/azure-vhd-utils.git \
&& cd azure-vhd-utils \
&& make
FROM debian:testing-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
debian-ports-archive-keyring \
debootstrap patch \
wget ca-certificates \
\
dosfstools squashfs-tools e2fsprogs \
fdisk mount \
gnupg dirmngr \
libcap2-bin \
python3 \
python3-mako \
qemu-user-static \
qemu-utils \
xz-utils \
cpio \
&& rm -rf /var/lib/apt/lists/*
# repo-root requires to be mounted at /debuerreotype
ENV PATH=${PATH}:/opt/debuerreotype/bin
COPY --from=kaniko /kaniko/executor /usr/local/bin/executor
COPY --from=azure /go/azure-vhd-utils/azure-vhd-utils /usr/local/bin/azure-vhd-utils
COPY hack/debootstrap.patch /tmp/debootstrap.patch
RUN patch -p1 < /tmp/debootstrap.patch \
&& rm -f /tmp/debootstrap.patch \
&& echo "progress=bar:force:noscroll" >> /etc/wgetrc
WORKDIR /tmp