Switch to dockercore/golang-cross image for cross-compiling
-FROM golang:1.10.8
+FROM dockercore/golang-cross:1.10.8
RUN apt-get update && apt-get install -y \
curl \
clang \
file \
- libltdl-dev \
libsqlite3-dev \
patch \
tar \
@@ -18,17 +17,6 @@ RUN useradd -ms /bin/bash notary \
&& pip install codecov \
&& go get golang.org/x/lint/golint github.com/fzipp/gocyclo github.com/client9/misspell/cmd/misspell github.com/gordonklaus/ineffassign github.com/securego/gosec/cmd/gosec/...
-# Configure the container for OSX cross compilation
-ENV OSX_SDK MacOSX10.11.sdk
-ENV OSX_CROSS_COMMIT 1a1733a773fe26e7b6c93b16fbf9341f22fac831
-RUN set -x \
- && export OSXCROSS_PATH="/osxcross" \
- && git clone https://github.com/tpoechtrager/osxcross.git $OSXCROSS_PATH \
- && ( cd $OSXCROSS_PATH && git checkout -q $OSX_CROSS_COMMIT) \
- && curl -sSL https://s3.dockerproject.org/darwin/v2/${OSX_SDK}.tar.xz -o "${OSXCROSS_PATH}/tarballs/${OSX_SDK}.tar.xz" \
- && UNATTENDED=yes OSX_VERSION_MIN=10.6 ${OSXCROSS_PATH}/build.sh > /dev/null
-ENV PATH /osxcross/target/bin:$PATH
-
ENV NOTARYDIR /go/src/github.com/theupdateframework/notary
COPY . ${NOTARYDIR}
