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.

  • Amazon EC2 Image creation breaks docker folder if “no-reboot” option is used
  • Docker - docker compose two branches - Updated
  • Docker Neo4j Container keeps stopping - how to debug?
  • Docker image lifecycle for a java-based app
  • Uploading to S3 from Docker Container
  • How to install java in RancherOs
  • Tag a docker container?
  • I can't access mounted volume of docker-postgres from host
  • Docker swarm mode load balancing not working as described
  • Piping output to command and terminal
  • Kubernetes Autoscaling Containers
  • Docker Swarm CD/CI (Jenkins, Docker)
  • 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.