How to add git repo path in the Dockerfile?

Can someone please tell me how to add the git repo path in the Dockerfile. Here is my Docker file

FROM ubuntu:14.04.3
MAINTAINER Upendra Devisetty

RUN apt-get update && apt-get install -y g++ \
            make \
            git \
            zlib1g-dev \
            python \
            wget \
            curl \
            python-matplotlib \
            python-numpy \

ENV BINPATH /usr/bin
RUN git clone
RUN chmod +x /evolinc_docker/ && cp /evolinc_docker/ $BINPATH

RUN wget -O- | tar xzvf -
RUN wget -O- | tar xzvf -
RUN wget -O- | tar vfx -
RUN curl > ncbi-blast-2.3.0+-x64-linux.tar.gz
RUN tar xvf ncbi-blast-2.3.0+-x64-linux.tar.gz
RUN wget
RUN tar -zxvf Python-2.7.10.tgz
RUN cd Python-2.7.10 && ./configure && make
RUN cd ..
RUN wget -O- | tar zxvf -
RUN wget && tar xvf download\?source\=files
RUN cd bwa-0.7.12 && make
RUN cd ..

ENV PATH /cufflinks-2.2.1.Linux_x86_64/:$PATH
ENV PATH /TransDecoder-2.0.1/:$PATH
ENV PATH /ncbi-blast-2.3.0+/bin/:$PATH
ENV PATH /Python-2.7.10/:$PATH
ENV PATH /bedtools2-2.25.0/bin/:$PATH
ENV PATH /samtools-bcftools-htslib-1.0_x64-linux/bin/:$PATH
ENV PATH /bwa-0.7.12/:$PATH

ENTRYPOINT ["/usr/bin/"]
CMD ["-h"]

When i run this

  • Within a Docker image, “Slapd stop” succeeds but slapd is still running
  • Where do you create application logs of app running in Docker?
  • docker: Says connection refused when attempting to connect to a published port
  • AWS codebuild not passing down environment variables?
  • Best way to install java 8 using docker?
  • CoreOS: fleetctl status shows service inactive, while container is up
  • docker run --rm -v $(pwd):/working-dir -w /working-dir ubuntu/evolinc -c AthalianaslutteandluiN30merged.gtf -g TAIR10_chr.fasta -r TAIR10_cdna_20110103_representative_gene_model_updated.fa -b TE_RNA_transcripts.fa -t AnnotatedPEATPeaks.gff -x Atha_known_lncRNAs.mod.gff

    I’m getting this error

    python: can't open file '': [Errno 2] No such file or directory

    What i don’t understand is how do i add the git rep to the path so that all the scripts in the repo can be opened.

  • Numeric value not able to set as env using Dockerfile #27284
  • Max Depth Exceeded error while creating a Docker image
  • Docker: Not a valid repository:
  • Getting SequelizeConnectionRefusedError: when running docker with sequelize
  • Docker Tomcat with ActiveMQ linked
  • Communicating between a windows and linux docker container on the same host
  • One Solution collect form web for “How to add git repo path in the Dockerfile?”

    You are doing RUN git clone without ever specifying where it will be cloned.

    Same for the wget commands.

    You might want to set a WORKDIR first instead of dumping everything in, by default, /. See Dockerfile WORKDIR.

    Your script might expect to find those resource in a specific path: if you were able to make that script work in your local machine (without docker), compare with your image by running a container with a bash, to explore what was installed where.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.