Dockerfile.armhf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM armhf/debian:jessie
  2. # allow replacing httpredir or deb mirror
  3. ARG APT_MIRROR=deb.debian.org
  4. RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
  5. RUN apt-get update && apt-get install -y \
  6. git \
  7. bash \
  8. curl \
  9. gcc \
  10. make
  11. ENV GO_VERSION 1.8.3
  12. RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" \
  13. | tar -xzC /usr/local
  14. ENV PATH /go/bin:/usr/local/go/bin:$PATH
  15. ENV GOPATH /go
  16. # We're building for armhf, which is ARMv7, so let's be explicit about that
  17. ENV GOARCH arm
  18. ENV GOARM 7
  19. RUN mkdir -p /go/src /go/bin /go/pkg
  20. RUN export GLIDE=v0.11.1; \
  21. export TARGET=/go/src/github.com/Masterminds; \
  22. mkdir -p ${TARGET} && \
  23. git clone https://github.com/Masterminds/glide.git ${TARGET}/glide && \
  24. cd ${TARGET}/glide && \
  25. git checkout $GLIDE && \
  26. make build && \
  27. cp ./glide /usr/bin/glide && \
  28. cd / && rm -rf /go/src/* /go/bin/* /go/pkg/*
  29. COPY glide.yaml /manvendor/
  30. COPY glide.lock /manvendor/
  31. WORKDIR /manvendor/
  32. RUN glide install && mv vendor src
  33. ENV GOPATH=$GOPATH:/manvendor
  34. RUN go build -o /usr/bin/go-md2man github.com/cpuguy83/go-md2man
  35. WORKDIR /go/src/github.com/docker/docker/
  36. ENTRYPOINT ["man/generate.sh"]