github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/Dockerfile (about)

     1  # Build stage
     2  ARG RELEASE_TAG=master
     3  FROM golang:latest
     4  
     5  ARG RELEASE_TAG
     6  
     7  RUN mkdir /build
     8  
     9  WORKDIR /build
    10  
    11  RUN export GO111MODULE=on
    12  RUN apt-get -y update
    13  RUN apt-get install -y libpq-dev postgresql-client
    14  RUN git clone --branch ${RELEASE_TAG} --single-branch --depth 1 https://github.com/resonatecoop/user-api
    15  
    16  WORKDIR /build/user-api
    17  
    18  RUN make install
    19  RUN git submodule update --init
    20  RUN make generate
    21  RUN go build
    22  
    23  EXPOSE 11000
    24  
    25  ENTRYPOINT ["sh", "docker-entrypoint.sh"]