Browse Source

First commit

Signed-off-by: Blagovest Petrov <blagovest@petrovs.info>
master
Blagovest Petrov 4 years ago
commit
1ad7a405c1
  1. 17
      Dockerfile

17
Dockerfile

@ -0,0 +1,17 @@
FROM debian:stable
WORKDIR /var/tmp
ENV rootfs=rootfs
RUN apt-get update && apt-get install debootstrap
RUN debootstrap --arch=i386 sarge ${rootfs} http://archive.debian.org/debian/ \
&& rm -rf $rootfs/{dev,proc} \
&& mkdir -p $rootfs{dev,proc}
RUN tar --numeric-owner -caf rootfs.tar.xz -C $rootfs --transform='s,^./,,' .
FROM scratch
COPY --from=0 /var/tmp/rootfs.tar.xz .
Loading…
Cancel
Save