I have Java app and want to generate docker image, I have shell script like this: And I try to convert it into Dockerfile like this It can be generated, but there’s an error when I try to run it like this: I’ve also changed this script RUN for rJarFile in `ls ${APPLICATION_DIR}/lib/*.jar`; do export into this RUN for rJarFile
Tag: sh
Concatenate list of paths in bash-script, with colon as separator
I have the following difficult to read script consisting of a single command: As slight readability improvement I would like to list all the paths after the -classpath in a separate variable, each aligned after the other: This way I can easier add and remove the paths, and sort them in Vim. My question is: how to join them back