is there any way to copy the contents (like sh files) into final image ? #254
Replies: 1 comment 2 replies
-
By default, when you do a source build the buildpack will remove all of the non-compiled bits (i.e. everything not in your WAR/JAR file). This makes for the smallest image possible. If you want to keep stuff, you have two options:
Just keep in mind that when using the include/exclude option the path does not change on any of the resources that are include/excluded. So if you have something like If you want the path to change, then you need to put the resources into your WAR/JAR file. After build, files are removed and the WAR/JAR is exploded out into Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having a java code using buildpacks I was able to build it but in that source code itself we have some script files .sh files I want it to be there in the final image but I couldn't able to do that is there any way that I can include the files that is needed to be present in the final image.
Like the COPY command in dockerfile is there any similar stuff for Buildpacks ?
Beta Was this translation helpful? Give feedback.
All reactions