mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
FROM resin/rpi-raspbian:stretch
|
|
|
|
# allow replacing archive mirror
|
|
ARG APT_MIRROR=archive.raspbian.org
|
|
RUN sed -ri "s/archive.raspbian.org/$APT_MIRROR/g" /etc/apt/sources.list
|
|
|
|
RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libltdl-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV GO_VERSION 1.9.2
|
|
ENV GOARM 6
|
|
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
ENV GOPATH /go
|
|
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
|
|
ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
|
|
ENV RUNC_BUILDTAGS apparmor seccomp selinux
|
|
|
|
COPY common/ /root/build-deb/debian
|
|
COPY build-deb /root/build-deb/build-deb
|
|
|
|
RUN mkdir -p /go/src/github.com/docker && \
|
|
mkdir -p /go/src/github.com/opencontainers && \
|
|
ln -snf /engine /root/build-deb/engine && \
|
|
ln -snf /cli /root/build-deb/cli && \
|
|
ln -snf /root/build-deb/engine /go/src/github.com/docker/docker && \
|
|
ln -snf /root/build-deb/cli /go/src/github.com/docker/cli
|
|
|
|
|
|
ENV DISTRO raspbian
|
|
ENV SUITE stretch
|
|
|
|
WORKDIR /root/build-deb
|
|
|
|
ENTRYPOINT ["/root/build-deb/build-deb"]
|