DevOps Classroom notes 25/Jun/2025

Slim images

A Java Application that uses Spring-boot

  • To run spring boot application we require JAVA JDK and a jar file
  • We have build the package locally
  • using the dockerfile in the changeset Refer Here we have built the docker image which copies the jar file into docker image
  • Refer Here for the changes to use the slim version or alpine version.
  • Best Practices:
    • It is not recommended to run your application as root user.
    • It is not recommened to run your applications from root directory
  • From now on lets always have application directory
  • WORKDIR
  • Refer Here for the changes to include WORKDIR
  • USER instruction will set the user
  • Refer Here for the changes that create a user
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%