Application.properties of Docker containerized spring boot application

How can we provide application.properties to spring boot app in a docker? Would normally copying the application.properties to the container work?

Source: StackOverflow