launch a CAT command unix into Dockerfile

I would like to launch this vagrant command cat(run perfectly!) to provisionning my container with a Dockerfile :

# Configure Virtualenvwrapper.
RUN cat <<EOF >> /home/docker/.bashrc
# Virtualenvwrapper configuration.
export WORKON_HOME=\$HOME/.virtualenvs
export PROJECT_HOME=\$HOME/Devel
source /usr/local/bin/

But I have this error return when I launch my building image docker :

  • access host's ssh tunnel from docker container
  • Docker php5-fpm service exited (code 0)
  • How can I use Windows Containers for Software Testing?
  • How can I maximize throughput in Docker and Akka HTTP?
  • What do 'Masters' and 'Agents ' mean to me in development terms?
  • Docker-Compose persistent data MySQL
  •  ---> 40f9ed8e187d
    Removing intermediate container 85f6c8536520
    Step 69 : RUN cat <<EOF >> /home/docker/.bashrc
     ---> Running in dcbb3d441f79
     ---> 78acd9c2e5d5
    Removing intermediate container dcbb3d441f79
    Step 70 : EXPORT
    Unknown instruction: EXPORT

    What is the trick for run a cat command unix into image with Dockerfile ?

  • Docker opens up a tiny new window that does nothing
  • Docker run container on different port
  • Docker compose on cross-platform environment
  • Docker swarm load balancing
  • How to show the run command of a docker container
  • Java Spring Hibernate application runs on local, but not in aws's ecs docker
  • One Solution collect form web for “launch a CAT command unix into Dockerfile”

    Dockerfiles are not batch files. Every line/command is isolated and committed.

    Just put the contents into a file and ADD/COPY it. If you need to customize it, SED it. Or if you really, really, really want to CAT into a file — put it in a real batch file, then ADD/COPY it, then RUN it.

    Also, less lines = less layers. 70 Steps? Yowzers.

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