github.com/litesolutions/justifay-api@v1.0.0-2.0.20220707114139-46f28a909481/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/litesolutions/justifay-api 15 16 WORKDIR /build/justifay-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"]