Hello World

Be Happy!

docker ENV



Dockerfile

ENV environment local
CMD ["java","-jar","-Dspring.profiles.active=${environment}","./target/web.jar"]

Docker run

docker run -d -p 8080:8080 -e environment=local --name web cw/web
#env (1) #dockerfile (3) #docker (20)
List