Docker Add command doesn't work in nested destination directory

I’m trying to build a simple image that includes a file (jdbc driver for Teamcity) in the image that I will then upload. When I set the destination to /data/ or /data/teamcity_server/ it works but, if I include the full path of where the file needs to be, it doesn’t. I’m stumped.

Dockerfile:

  • Import host group into Docker container
  • how to debug container images using openshift
  • Cannot access a Kubernetes postgresql service from the outside
  • Mesos-Marathon docker
  • Does Spark Job Server have to be deployed on the same host as Spark Master?
  • Get docker version from file
  • FROM jetbrains/teamcity-server
    ADD  https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar /data/teamcity_server/datadir/lib/jdbc/
    

    I tried the copy command using a file on disk in the context of the folder i’m building from with the same result. Surely it’s something simple I’ve missed, but i’m about frustrated at this point.

  • How to deploy django 1.8 on Elastic Beanstalk using Docker
  • Atom editor PHP link from Docker container
  • Fixing World-writable MySql error in Docker
  • Kitematic - Force using Virtualbox
  • How to update a Docker Image
  • docker image delete from private registry
  • One Solution collect form web for “Docker Add command doesn't work in nested destination directory”

    What about?

    FROM jetbrains/teamcity-server
    RUN cd /data/teamcity_server/datadir/lib/jdbc/ \
       && wget https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.