2017-05-11 18:52:17 -04:00
|
|
|
|
|
|
|
FROM golang:1.8.1
|
|
|
|
|
|
|
|
# allow replacing httpredir or deb mirror
|
|
|
|
ARG APT_MIRROR=deb.debian.org
|
|
|
|
RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
|
|
|
|
|
2017-05-12 12:07:57 -04:00
|
|
|
RUN apt-get update -qq && apt-get install -y -q \
|
2017-05-11 18:52:17 -04:00
|
|
|
libltdl-dev \
|
2017-05-12 11:30:30 -04:00
|
|
|
gcc-mingw-w64 \
|
|
|
|
parallel \
|
2017-05-11 18:52:17 -04:00
|
|
|
;
|
|
|
|
|
2017-05-12 12:07:57 -04:00
|
|
|
COPY dockerfiles/osx-cross.sh /tmp/
|
|
|
|
RUN /tmp/osx-cross.sh
|
|
|
|
ENV PATH /osxcross/target/bin:$PATH
|
|
|
|
|
2017-05-11 18:52:17 -04:00
|
|
|
WORKDIR /go/src/github.com/docker/cli
|