Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
auggod committed Dec 8, 2021
1 parent 0cdd38a commit c854c48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Build stage
ARG RELEASE_TAG=master
FROM golang:latest

ARG RELEASE_TAG

RUN mkdir /build

WORKDIR /build
Expand All @@ -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

Expand Down

0 comments on commit c854c48

Please sign in to comment.