Hi Akhilesh,
You may have an extra ':' in your command.
Here is what I usually do:
FROM python:3.6
COPY gurobi8.1.0_linux64.tar.gz /tmp
RUN mkdir -p /opt && tar xfz /tmp/gurobi8.1.0_linux64.tar.gz -C /opt
ENV GUROBI_HOME /opt/gurobi810/linux64
ENV PATH $PATH:$GUROBI_HOME/bin
ENV LD_LIBRARY_PATH $GUROBI_HOME/lib
RUN cd $GUROBI_HOME && python setup.py install
Note that in order to use Gurobi in a Docker container, you will need to use one of these options:
- a token server running outside Docker (floating license)
- or compute server running outside Docker (compute server license),
- or Gurobi Instant Cloud (cloud license).
Michel Jaczynski