diff --git a/Dockerfile.build b/Dockerfile.build deleted file mode 100644 index d384d91..0000000 --- a/Dockerfile.build +++ /dev/null @@ -1,32 +0,0 @@ -# this container is used for compiling dbmate against multiple targets -FROM golang:1.6.0 - -ENV CGO_ENABLED 1 - -# i386 cross compilation -RUN dpkg --add-architecture i386 && \ - apt-get update && \ - apt-get install -y libc6-dev-i386 && \ - rm -rf /var/lib/apt/lists/* - -# osx cross compilation -# ref: https://github.com/karalabe/xgo/blob/master/docker/base/Dockerfile -ENV OSX_SDK_VERSION 10.9 -RUN cd /opt && \ - git clone https://github.com/tpoechtrager/osxcross.git && \ - cd osxcross && \ - sed -i -e 's|-march=native||g' ./build_clang.sh ./wrapper/build.sh && \ - apt-get update && \ - ./tools/get_dependencies.sh && \ - rm -rf /var/lib/apt/lists/* && \ - curl -fSL -o ./tarballs/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz \ - https://s3.amazonaws.com/andrew-osx-sdks/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz && \ - UNATTENDED=1 OSX_VERSION_MIN=10.6 ./build.sh -ENV PATH /opt/osxcross/target/bin:$PATH - -# copy source files -COPY . $GOPATH/src/github.com/amacneil/dbmate -WORKDIR $GOPATH/src/github.com/amacneil/dbmate - -# fetch dependencies -RUN go get -d -t -v