I try to install pbc library which have gmp as dependence. Dockerfile:
FROM golang:1.9.6-alpine3.7
RUN mkdir -p /go/src/app
WORKDIR /go/src/app
COPY . /go/src/app
RUN apk add --update git gcc build-base flex bison gmp
RUN wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz && \
tar -xvf pbc-0.5.14.tar.gz && \
cd pbc-0.5.14 && \
./configure --prefix=$HOME/.local && \
make && make install
RUN rm pbc-0.5.14.tar.gz && rm -rf pbc-0.5.14
RUN go-wrapper download
RUN go-wrapper install
CMD ["go-wrapper", "run", "-web"]
EXPOSE 8000
However when I run it I get such an error during pbc installation:
gmp library not found
add its path to LDFLAGS
see ./configure --help
Here I found that i should add export: How to add a path to LDFLAGS
Note that I add gmp to dependencies, but pbg dont see it
How should I do it throw docker?