When I am building an image for my Go application through docker, I am getting the following error:
# pkg-config --cflags oci8
Package oci8 was not found in the pkg-config search path. Perhaps you should add the directory containing `oci8.pc' to the PKG_CONFIG_PATH environment variable No package 'oci8' found pkg-config: exit status 1
I have set the environment variable in my Dockerfile also. But still the issue persists. My Dockerfile is:
FROM golang:1.9 ARG app_env ENV APP_ENV $app_env ENV GOPATH /home/nupur/mapi-go ENV PKG_CONFIG_PATH /home/nupur/mapi-go ENV ORACLE_HOME /usr/include/oracle/11.2/client64 ENV LD_LIBRARY_PATH /usr/lib/oracle/11.2/client64/lib WORKDIR /home/nupur/mapi-go/src/DockerApp/blDocker ADD . . RUN go build /home/nupur/mapi-go/src/DockerApp/blDocker/launch.go ENTRYPOINT ["./launch"] EXPOSE 8093
Please suggest a solution.