blob: 4ae471b84b8076c2538400034902de087d2a981a [file] [log] [blame]
FROM debian:10-slim
MAINTAINER coral-support@google.com
RUN /bin/bash -c '\
apt-get update && \
apt-get install -y apt-transport-https apt-utils autoconf \
automake bc binfmt-support binutils-aarch64-linux-gnu \
build-essential ca-certificates cdbs coreutils cpio \
crossbuild-essential-arm64 crossbuild-essential-armhf curl \
debhelper debian-archive-keyring device-tree-compiler \
dh-python fakeroot gdisk genext2fs git gnome-pkg-tools gnupg \
gpg-agent kpartx libcap-dev libwayland-dev make mtools \
multistrap parted pbuilder pkg-config python python-minimal \
python2.7 python3 python3-all python3-apt python3-debian \
python3-git python3-pip python3-setuptools qemu-user-static \
quilt rsync sudo wget xz-utils zlib1g-dev'
ADD --chown=root:root aptly.list /etc/apt/sources.list.d/aptly.list
ADD --chown=root:root aptly.pubkey /tmp
RUN /bin/bash -c ' \
cat /tmp/aptly.pubkey |apt-key add - && \
apt-get update && \
apt-get install -y aptly'
RUN /bin/bash -c '\
curl https://storage.googleapis.com/git-repo-downloads/repo >/usr/local/bin/repo && \
chmod a+x /usr/local/bin/repo'
RUN /bin/bash -c 'git clone https://gerrit.googlesource.com/gcompute-tools /opt/gcompute-tools'
ADD --chown=root:root aptly.conf /etc/aptly.conf
ADD --chown=root:root gpg-agent.conf /etc/gpg-agent.conf
RUN /bin/bash -c 'apt-get clean'
VOLUME ['/var/lib/aptly', '/srv/aptly-publish-fs']
WORKDIR /var/lib/aptly