Tag : bash

There’s a Docker file for SpringBoot application with this entry point: # some lines omitted ENTRYPOINT java -jar app.jar –spring.config.additional-location=$(ls /config/*.properties | tr ‘n’ ‘,’) On container start a host directory is mounted to /config/ directory: docker run -p 9999:8080 -v C:/path/to/configuration/:/config my_image_name And it works as expected, capturing all *.properties from the host directory ..

Read more

I’m looking to create a container image from bitnami/wordpress which is removing default WP themes and plugins and installs my custom theme and required plugins. The bitnami image already has wp cli installed, so i want to make use of it. Dockerfile FROM bitnami/wordpress COPY ./my-custom-theme/ /opt/bitnami/wordpress/wp-content/themes COPY ./plugins/ /opt/bitnami/wordpress/wp-content/plugins COPY ./docker/my-entrypoint.sh / ENTRYPOINT [ ..

Read more