Closed cmoulliard closed 8 years ago
You should use a another baseDir
than /deployments
(which is the default). That goes directly below <build>
.
@cmoulliard could I have a look on the full project so that I can reproduce it ? (and maybe fix the setup)
If you need more flexibility for creating images, I recommend to use the dockerfile mode, where an external Dockerfile is evaluated. <copy>
wont be added to the plugin-config mode since this overlaps with the assembly (and there's nothing a <copy>
could do what an assembly can't)
Solution that worked:
baseDir
to /
deployments
instead of .
in the assembly descriptor
Currently, all the resources generated under local directory target/maven are copied to /path within the Docker image according to the
basedir
propertyThis config works very well excepted that all the content defined under the folder maven will be copied to /deployments as defined within the Dockerfile generated
If we would like to copy resources to a specific path, this is not possible. Si, I would like to suggest that the docker command COPY is also supported