2016-04-08 20:04:15 +02:00
|
|
|
FROM resin/rpi-raspbian:jessie
|
|
|
|
|
2016-05-27 23:00:05 +02:00
|
|
|
# allow replacing httpredir mirror
|
|
|
|
ARG APT_MIRROR=httpredir.debian.org
|
|
|
|
RUN sed -i s/httpredir.debian.org/$APT_MIRROR/g /etc/apt/sources.list
|
|
|
|
|
2016-04-08 20:04:15 +02:00
|
|
|
RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libltdl-dev libsqlite3-dev libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-07-18 11:52:27 +02:00
|
|
|
ENV GO_VERSION 1.6.3
|
2016-08-13 00:40:29 +02:00
|
|
|
ENV GOARM 6
|
2016-05-27 23:00:05 +02:00
|
|
|
RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
2016-04-08 20:04:15 +02:00
|
|
|
ENV PATH $PATH:/usr/local/go/bin
|
|
|
|
|
|
|
|
ENV AUTO_GOPATH 1
|
|
|
|
ENV DOCKER_BUILDTAGS apparmor selinux
|