forked from gardenlinux/gardenlinux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (30 loc) · 892 Bytes
/
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
FROM gcr.io/kaniko-project/executor:latest as kaniko
FROM debian:testing-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
debian-ports-archive-keyring \
debootstrap patch \
wget ca-certificates \
\
gnupg dirmngr \
qemu-user-static \
dosfstools squashfs-tools e2fsprogs \
fdisk mount \
xz-utils \
qemu-utils \
python3 \
python3-mako \
&& rm -rf /var/lib/apt/lists/*
# see ".dockerignore"
COPY --from=kaniko /kaniko/executor /kaniko/executor
COPY . /opt/debuerreotype
RUN patch -p1 < /opt/debuerreotype/hack/debootstrap.patch \
&& echo "progress=bar:force:noscroll" >> /etc/wgetrc
WORKDIR /opt/debuerreotype/bin
RUN for f in debuerreotype-*; do \
ln -svL "$PWD/$f" "/usr/local/bin/$f"; \
done; \
version="$(debuerreotype-version)"; \
[ "$version" != 'unknown' ]; \
echo "debuerreotype version $version"
WORKDIR /tmp