Fix for bug that forces all Go binaries to be based on Go 1.8 (the default)

This commit is contained in:
Andrew Newdigate 2017-12-21 11:55:07 +00:00 committed by Marin Jankovski
parent ab7d1bf72f
commit 6725e787b0
11 changed files with 40 additions and 25 deletions

View file

@ -33,9 +33,9 @@ ARG YARN_INSTALL_VERSION
RUN if [ -n "$NODE_INSTALL_VERSION" ] ; then /scripts/install-node $NODE_INSTALL_VERSION $YARN_INSTALL_VERSION && node --version && yarn --version; fi
# Golang
ARG GOLANG_VERSION
ARG INSTALL_GOLANG_VERSION
ARG GOLANG_DOWNLOAD_SHA256
RUN if [ -n "$GOLANG_VERSION" ] ; then /scripts/install-golang && go version; fi
RUN if [ -n "$INSTALL_GOLANG_VERSION" ] ; then /scripts/install-golang "${INSTALL_GOLANG_VERSION}" "${GOLANG_DOWNLOAD_SHA256}" && go version; fi
# Postgres
# Codedebt: currently this will only install the default version of postgres,