diff --git a/Dockerfile b/Dockerfile index 516cc6d..5b7e6e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ # Build stage +ARG RELEASE_TAG=master FROM golang:latest +ARG RELEASE_TAG + RUN mkdir /build WORKDIR /build @@ -9,7 +12,7 @@ RUN export GO111MODULE=on RUN apt-get -y update RUN apt-get install -y libpq-dev postgresql-client RUN go get github.com/resonatecoop/user-api -RUN cd /build && git clone https://github.com/resonatecoop/user-api +RUN cd /build && git clone --branch ${RELEASE_TAG} --single-branch --depth 1 https://github.com/resonatecoop/user-api RUN cd user-api && go build