Why does the path command doesn't work in Docker file

This is my docker file

# This is a comment
FROM chapmanb/bcbio-nextgen-devel
MAINTAINER Sabarish Subramanian
RUN mkdir /root/software && cd /root/software && wget http://bio.math.berkeley.edu     /eXpress /downloads/express-1.5.1/express-1.5.1-linux_x86_64.tgz
RUN cd /root && mkdir src && cd src && tar xzf ../software/express-1.5.1-linux_x86_64.tgz &&  PATH=$PATH:/root/src/express-1.5.1-linux_x86_64 && export PATH && echo $PATH

In the new docker container the path is not set.Kindly suggest me a good way to do this.

  • Getting “broken pipe” when building Docker image using boot2docker Mac
  • How to setup a valid mongo replicaset
  • Execute command on host during docker build
  • deploy war file on tomcat docker container
  • Why won't my container run?
  • Spring-boot application wont boot at startup inside docker
  • Like “make” for Docker
  • How to set new folders inherit folder permission in Docker volume on Mac
  • creating staging environment locally on single host using docker
  • How to expose ports defined in EXPOSE without explicitly setting ports via CLI options?
  • Cant mount volume docker run
  • Change process limit of open file descriptors inside a container [duplicate]
  • One Solution collect form web for “Why does the path command doesn't work in Docker file”

    According to

    https://github.com/docker/docker/issues/684

    you should use the

    ENV

    command to set $PATH to your value

    https://docs.docker.com/reference/builder/#ENV

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