From c854c48e6980dfbff09c48551e43838a1ea997ed Mon Sep 17 00:00:00 2001 From: Augustin Godiscal Date: Wed, 8 Dec 2021 14:23:18 +0100 Subject: [PATCH] update dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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